Tool tips on Status bar created on a dialog
-
Hello All! I have been tasked with writing a dialog based application that must include a menu, tool bar and status bar. Being CFormView based is not an option. I have everything working beautifully except 2 items: 1. Tool tips do not display correctly on the status bar panes. 2. I need to resize the dialog once the tool bar or status bar are turned off. I only need help with #1 as I have not even worked on #2 yet. I have a normal CStatusBar derived from a class described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.71).aspx[^] The dialog has a base class as described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.80).aspx[^] What happens when hovering over any of the status bar panes is you get a tool tip centered horizontally over the status bar that simply says "Toggle Status Bar". I am seeing the TTN_NEEDTEXT message fire with control ID 59393 which is AFX_IDW_STATUS_BAR. All of the update commands, tool tips and message strings work for the menus and tool bars as well as the update handlers for the status bar, it is just the tool tips for the status bar that do not work. Any help is greatly appreciated. Craig
-
Hello All! I have been tasked with writing a dialog based application that must include a menu, tool bar and status bar. Being CFormView based is not an option. I have everything working beautifully except 2 items: 1. Tool tips do not display correctly on the status bar panes. 2. I need to resize the dialog once the tool bar or status bar are turned off. I only need help with #1 as I have not even worked on #2 yet. I have a normal CStatusBar derived from a class described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.71).aspx[^] The dialog has a base class as described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.80).aspx[^] What happens when hovering over any of the status bar panes is you get a tool tip centered horizontally over the status bar that simply says "Toggle Status Bar". I am seeing the TTN_NEEDTEXT message fire with control ID 59393 which is AFX_IDW_STATUS_BAR. All of the update commands, tool tips and message strings work for the menus and tool bars as well as the update handlers for the status bar, it is just the tool tips for the status bar that do not work. Any help is greatly appreciated. Craig
Have a look at the article StatusBarACT[^] and the source code to add the tool tip related code to your
CStatusBar
derived class.