TTM_GETMARGIN message

Retrieves the top, left, bottom, and right margins set for a tooltip window. A margin is the distance, in pixels, between the tooltip window border and the text contained within the tooltip window.

Parameters

wParam

Must be zero.

lParam

Pointer to a RECT structure that will receive the margin information. The members of the RECT structure do not define a bounding rectangle. For the purpose of this message, the structure members are interpreted as follows:

Value Meaning
left
Distance between left border and left end of tooltip text, in pixels.
top
Distance between top border and top of tooltip text, in pixels.
right
Distance between right border and right end of tooltip text, in pixels.
bottom
Distance between bottom border and bottom of tooltip text, in pixels.

Return value

The return value for this message is not used.

Remarks

All four margins default to zero when you create the tooltip control.

Requirements

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

See also

TTM_SETMARGIN