Share via


Using CToolTipCtrl to Create and Manipulate a CToolTipCtrl Object

OverviewSample

Here is an example of usage:

To create and manipulate a CToolTipCtrl

  1. Construct the CToolTipCtrl object.

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

  3. Call 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 to set the information that a tool tip maintains for a tool.

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

  6. Call 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 to retrieve a count of the tools registered with the tool tip control.

See Also   Windows Common Controls and MFC Classes