BCM_GETTEXTMARGIN message

Gets the margins used to draw text in a button control. You can send this message explicitly or use the Button_GetTextMargin macro.

Parameters

wParam

Not used; must be zero.

lParam

A pointer to a RECT structure that contains the margins to use for drawing text.

Return value

If the message succeeds, it returns TRUE. Otherwise it returns FALSE.

Remarks

Note

To use this message, you must provide a manifest specifying Comclt32.dll version 6.0. For more information on manifests, see Enabling Visual Styles.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h