Home | Overview | How Do I | Sample | Tutorial
Tool tips are the tiny popup windows that present short descriptions of a toolbar button’s purpose when you position the mouse over a button for a period of time. When you create an application with AppWizard that has a toolbar, tool tip support is provided for you. This article explains both the tool tip support created by AppWizard and how to add tool tip support to your application.
This article covers:
To activate tool tips in your application, you must do two things:
dwStyle
parameter to the CToolBar::Create function or in SetBarStyle.To add the tool tip text
Note Setting the text as a button property in the toolbar editor replaces the former procedure, in which you had to open and edit the string resource.
If a control bar with tool tips enabled has child controls placed on it, the control bar will display a tool tip for every child control on the control bar as long as it meets the following criteria:
A feature related to tool tips is “flyby” status bar updating. By default, the message on the status bar describes only a particular toolbar button when the button is activated. By including CBRS_FLYBY in your list of styles passed to CToolBar::Create, you can have these messages updated when the mouse cursor passes over the toolbar without actually activating the button.