Using Tooltips in a CStatusBarCtrl Object

OverviewSample

To enable tooltips for a status bar control, create the CStatusBarCtrl object with the SBT_TOOLTIPS style.

Note   If you are using a CStatusBar object to implement your status bar, use the CStatusBar::CreateEx function. It allows you to specify additional styles for the embedded CStatusBarCtrl object.

Once the CStatusBarCtrl object has been successfully created, use and to set and retrieve the tip text for a specific pane.

Once the tooltip has been set, it is displayed only if the part has an icon and no text, or if all of the text cannot be displayed inside the part. Tooltips are not supported in simple mode.

See Also   Windows Common Controls and MFC Classes