Muokkaa

Jaa


TTN_SHOW notification code

Notifies the owner window that a tooltip control is about to be displayed. This notification code is sent in the form of a WM_NOTIFY message.

TTN_SHOW

    pnmh = (LPNMHDR) lParam; 

Parameters

lParam

Pointer to an NMHDR structure.

Return value

Version 4.70. To display the tooltip in its default location, return zero. To customize the tooltip position, reposition the tooltip window with the SetWindowPos function and return TRUE.

Note

For versions earlier than 4.70, there is no return value.

Remarks

A tooltip window rectangle is somewhat larger than its text display rectangle, and its origin is offset up and to the left. If you need to accurately position the text display rectangle of a tooltip, the TTM_ADJUSTRECT message converts a text display rectangle into the corresponding tooltip window rectangle and vice versa.

Requirements

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