Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This 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.

Syntax

TTM_GETMARGIN 
wParam = 0;

lParam = (LPARAM)(LPRECT) 
lprc;

Parameters

wParam

Not used. Set to 0.

lprc

Pointer to a RECTstructure that receives information about the margins. The members of this RECTstructure do not define a bounding rectangle. The following table describes of the structure members for this message.

Member Description

top

The distance between the top border and the top of the ToolTip text, in pixels.

left

The distance between the left border and the left of the ToolTip text, in pixels.

bottom

The distance between the bottom border and the bottom of the ToolTip text, in pixels.

right

The distance between the right border and the right of the ToolTip text, in pixels.

Return Value

The return value for this message is not used.

Remarks

The size of all four margins is set to 0 by default when you create the ToolTip control.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

TTM_SETMARGIN
RECT