TTN_SHOW Notification

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

Syntax

TTN_SHOW 

    idTT = (int) wParam; 

    pnmh = (LPNMHDR) lParam; 

Parameters

idTT
Identifier of the tooltip control.
pnmh
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.

Notification Requirements

Minimum DLL Version None
Headercommctrl.h
Minimum operating systems Windows NT 3.51, Windows 95
Tags :


Page view tracker