This section contains information about the programming elements used with ToolTip controls.
Overviews
About ToolTip Controls
ToolTips appear automatically, or pop up, when the user pauses the mouse pointer over a tool or some other UI element.
Using ToolTip Controls
This section contains examples that demonstrate how to create different types of ToolTips.
Messages
TTM_ACTIVATE
Activates or deactivates a ToolTip control.
TTM_ADDTOOL
Registers a tool with a ToolTip control.
TTM_ADJUSTRECT
Calculates a ToolTip control's text display rectangle from its window rectangle, or the ToolTip window rectangle needed to display a specified text display rectangle.
TTM_DELTOOL
Removes a tool from a ToolTip control.
TTM_ENUMTOOLS
Retrieves the information that a ToolTip control maintains about the current tool
TTM_GETBUBBLESIZE
Returns the width and height of a ToolTip control.
TTM_GETCURRENTTOOL
Retrieves the information for the current tool in a ToolTip control.
TTM_GETDELAYTIME
Retrieves the initial, pop-up, and reshow durations currently set for a ToolTip control.
TTM_GETMARGIN
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.
TTM_GETMAXTIPWIDTH
Retrieves the maximum width for a ToolTip window.
TTM_GETTEXT
Retrieves the information a ToolTip control maintains about a tool.
TTM_GETTIPBKCOLOR
Retrieves the background color in a ToolTip window.
TTM_GETTIPTEXTCOLOR
Retrieves the text color in a ToolTip window.
TTM_GETTITLE
Retrieve information concerning the title of a tooltip control.
TTM_GETTOOLCOUNT
Retrieves a count of the tools maintained by a ToolTip control.
TTM_GETTOOLINFO
Retrieves the information that a ToolTip control maintains about a tool.
TTM_HITTEST
Tests a point to determine whether it is within the bounding rectangle of the specified tool and, if it is, retrieves information about the tool.
TTM_NEWTOOLRECT
Sets a new bounding rectangle for a tool.
TTM_POP
Removes a displayed ToolTip window from view.
TTM_POPUP
Causes the ToolTip to display at the coordinates of the last mouse message.
TTM_RELAYEVENT
Passes a mouse message to a ToolTip control for processing.
TTM_SETDELAYTIME
Sets the initial, pop-up, and reshow durations for a ToolTip control.
TTM_SETMARGIN
Sets the top, left, bottom, and right margins for a ToolTip window. A margin is the distance, in pixels, between the ToolTip window border and the text contained within the ToolTip window.
TTM_SETMAXTIPWIDTH
Sets the maximum width for a ToolTip window.
TTM_SETTIPBKCOLOR
Sets the background color in a ToolTip window.
TTM_SETTIPTEXTCOLOR
Sets the text color in a ToolTip window.
TTM_SETTITLE
Adds a standard icon and title string to a ToolTip.
TTM_SETTOOLINFO
Sets the information that a ToolTip control maintains for a tool.
TTM_SETWINDOWTHEME
Sets the visual style of a ToolTip control.
TTM_TRACKACTIVATE
Activates or deactivates a tracking ToolTip.
TTM_TRACKPOSITION
Sets the position of a tracking ToolTip.
TTM_UPDATE
Forces the current tool to be redrawn.
TTM_UPDATETIPTEXT
Sets the ToolTip text for a tool.
TTM_WINDOWFROMPOINT
Allows a subclass procedure to cause a ToolTip to display text for a window other than the one beneath the mouse cursor.
Notifications
NM_CUSTOMDRAW (ToolTip)
Sent by a ToolTip control to notify its parent windows about drawing operations. This notification message is sent in the form of a WM_NOTIFY message.
TTN_GETDISPINFO
Sent by a ToolTip control to retrieve information needed to display a ToolTip window. This notification is sent in the form of a WM_NOTIFY message.
TTN_LINKCLICK
Sent when a text link inside a balloon ToolTip is clicked.
TTN_NEEDTEXT
Sent by a ToolTip control to retrieve information needed to display a ToolTip window. This notification is identical to TTN_GETDISPINFO. This notification is sent in the form of a WM_NOTIFY message.
TTN_POP
Notifies the owner window that a ToolTip is about to be hidden. This notification message is sent in the form of a WM_NOTIFY message.
TTN_SHOW
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.
Structures
NMTTCUSTOMDRAW
Contains information specific to an NM_CUSTOMDRAW notification message sent by a ToolTip control.
NMTTDISPINFO
Contains information used in handling the TTN_GETDISPINFO notification message. This structure supersedes the
TOOLTIPTEXT structure.
TOOLINFO
The TOOLINFO structure contains information about a tool in a ToolTip control.
TTGETTITLE
Provides information about the title of a tooltip control.
TTHITTESTINFO
Contains information that a ToolTip control uses to determine whether a point is in the bounding rectangle of the specified tool. If the point is in the rectangle, the structure receives information about the tool.
Constants
ToolTip Styles
This section lists the control styles used with ToolTip controls.