Copyright: ToolTips Component Help


Dialog ToolTips Component: Overview

The Modeless Dialog ToolTips component adds tool tip support to a dialog in your application. With tool tip support, when the mouse pointer hovers above a control in the dialog box, a small pop-up window appears, giving a description of the control’s purpose.

Dialog ToolTips Component: Specifics

Dialog ToolTips Component: Results


Dialog ToolTips Component: Specifics

When you insert this component, you are given a list of all the CDialog-derived classes in your application. You must choose a dialog from the list.

This component adds a CToolTipCtrl member to the specified dialog class. The CToolTipCtrl class in MFC encapsulates the functionality of the new Windows common tool tip control.

After inserting this component, you must modify the OnInitDialog member function of your dialog class to specify the text you want displayed for each control. You can specify an explicit text string or use a string resource.

See CToolTipCtrl in the Class Library Reference and “Technical Note 60: The New Windows Common Controls” in the MFC documentation for more information about what you can do with a tool tip control.

To enable tool tips for a toolbar, see the article “Toolbars: Tool Tips” in Programming with MFC.


Dialog ToolTips Component: Results

The Dialog ToolTips component makes the following changes to your project.

•	A CToolTipCtrl member is added to your dialog class.

•	The OnInitDialog function of your dialog class is modified to initialize the CToolTipCtrl member.

•	A PreTranslateMessage function is added to your dialog class to relay messages to the CToolTipCtrl member.


Dialog ToolTips Component

If your project contains more than one dialog class, choose which class to add the tool tips to.

Note: This component does not support tool tips for property pages.