Share via


TTN_SHOW (Compact 2013)

3/28/2014

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

Syntax

TTN_SHOW idTT = (int) wParam;
    pnmh = (LPNMHDR) lParam;

Parameters

  • idTT
    Integer that identifies the ToolTip control.
  • pnmh
    Pointer to an NMHDR structure that contains the notification code and additional information.

Return Value

To display the ToolTip in its default location, return 0. To customize the ToolTip position, reposition the ToolTip window with the SetWindowPos function and return TRUE.

Remarks

A window rectangle for a ToolTip is somewhat larger than the text display rectangle for the ToolTip, and the origin of the window rectangle is offset up and to the left.

Requirements

Header

commctrl.h

See Also

Reference

ToolTips Notifications
SetWindowPos
WM_NOTIFY
NMHDR