Muokkaa

Jaa


TTM_SETMARGIN message

Sets the top, left, bottom, and right margins 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 contains the margin information to be set. 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
top
Distance between top border and top of tooltip text, in pixels.
left
Distance between left border and left end of tooltip text, in pixels.
bottom
Distance between bottom border and bottom of tooltip text, in pixels.
right
Distance between right border and right end of tooltip text, in pixels.

Return value

The return value for this message is not used.

Remarks

This message has no effect when the application runs on Windows Vista and visual styles are enabled for the tooltip. You can disable visual styles for the tooltip by using SetWindowTheme.

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_GETMARGIN