Using Tooltips in a CStatusBarCtrl Object
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 CStatusBarCtrl::SetTipText and CStatusBarCtrl::GetTipText to set and retrieve the tip text for a specific pane.
Once the tool tip 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. Tool tips are not supported in simple mode.