Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » ID_EXT_DYN_BAR_AUTO_HIDE command Collapse All
Subject Author Date
Raffaele Cappelli Mar 10, 2006 - 3:02 AM

Is it possible to make the ID_EXT_DYN_BAR_AUTO_HIDE command toggle autohide on/off as in Visual Studio 2005 IDE?

May I simply modify the code (ExtControlBar.cpp - CExtDynamicControlBar::WindowProc) as:

...
            case ID_EXT_DYN_BAR_AUTO_HIDE:
                if (AutoHideModeGet()) {
                    BarStateSet( __EDBS_DOCKED, true );
                }
                else {
                    BarStateSet( __EDBS_AUTO_HIDDEN, true );
                }
            break;
...

or is there any potential problem doint that?

Thank you.

Technical Support Mar 10, 2006 - 8:12 AM

We recommend you use a CExtDynamicControlBar-derived class and implement the WindowProc() virtual method in it.