Click to See Complete Forum and Search --> : Disable Status Bar Command Tips


May 13th, 1999, 11:14 AM
Hi,
I'm writing an SDI program that displays a file path in the status bar at the bottom of the window. I'm able to fill the bar with the desired text but it gets erased as soon as I move the cursor to the application tool bar. The "command tips" in the status bar get written over my text. Hwo do I disable those command tips?

May 13th, 1999, 01:26 PM
You will find the style setting in the OnCreate function of your CFrameWnd-derived class (usually CMainFrame). The style setting to remove is CBRS_FLYBY.

The code will like 'm_wndToolbar.SetBarStyle( m_wndToolbar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY );'