CTooltip.GetMarginmethod
Retrieves the top, left, bottom, and right margins set for a Tooltip window.
Syntax
SUB GetMargin (BYVAL hTooltip AS HWND, BYVAL lprc AS RECT PTR)
SUB GetMargin (BYVAL hTooltip AS HWND, BYREF rc AS RECT)
FUNCTION GetMargin (BYVAL hTooltip AS HWND) AS RECT
Parameters
| Name | Description | |
|---|---|---|
hTooltip | The handle of the Tooltip control. | |
lprc | 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: | |
rc | 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: |
Description
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.
Remarks
All four margins default to zero when you create the tooltip control.
Reference
- Include file
CTooltip.inc - Defined in AfxNova/CTooltip.inc:315
- Documented in Windows/WIndows Controls/CTooltip Class.md
- Topic: CTooltip Class