How do I attach a Tool Tip to my toolbar?
Cheers,
Stu
Printable View
How do I attach a Tool Tip to my toolbar?
Cheers,
Stu
Are you creating a CToolbar object in code, or using the resource editor? If you're creating it in code, then add the CBRS_TOOLTIPS style to the CToolBar::Create() call (or SetBarStyle.
The tooltip itself is part of the prompt for the toolbar buttons. You simply separate it from the command (status bar) prompt with a newline character, \n. You must ensure that your stringtable has an entry with the same ID as the toolbar buttons that you want to have display tooltips.
A typical stringtable entry for a toolbar button might be:
"Open a file\nOpen"
"Open a file" would be shown on the status bar (flyby) and "Open" as the tooltip.
--
Daren Chandisingh