Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.61 KB

using-ctooltipctrl-to-create-and-manipulate-a-ctooltipctrl-object.md

File metadata and controls

31 lines (20 loc) · 1.61 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Using CToolTipCtrl to Create and Manipulate a CToolTipCtrl Object
Using CToolTipCtrl to Create and Manipulate a CToolTipCtrl Object
11/04/2016
tool tips [MFC], creating
CToolTipCtrl class [MFC], using
0a34583f-f66d-46a1-a239-31b80ea395ad

Using CToolTipCtrl to Create and Manipulate a CToolTipCtrl Object

Here is an example of CToolTipCtrl usage:

To create and manipulate a CToolTipCtrl

  1. Construct the CToolTipCtrl object.

  2. Call Create to create the Windows tool tip common control and attach it to the CToolTipCtrl object.

  3. Call AddTool to register a tool with the tool tip control, so that the information stored in the tool tip is displayed when the cursor is on the tool.

  4. Call SetToolInfo to set the information that a tool tip maintains for a tool.

  5. Call SetToolRect to set a new bounding rectangle for a tool.

  6. Call HitTest to test a point to determine whether it is within the bounding rectangle of the given tool and, if so, retrieve information about the tool.

  7. Call GetToolCount to retrieve a count of the tools registered with the tool tip control.

See also

Using CToolTipCtrl
Controls