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 » CExtControlBar question Collapse All
Subject Author Date
tera tera Jan 16, 2009 - 1:20 AM

Hello.


 Please teach a method to close AutoHide-Bar.



 

Technical Support Jan 19, 2009 - 1:14 PM

In the case of simple control bars:

CExtControlBar * pBar = . . .
            if( pBar->AutoHideModeGet() )
                        pBar->AutoHideModeSet( false, false, true, true );
            else if( pBar->IsVisible() )
                        pMainFrame->ShowControlBar( pBar, FALSE, FALSE );

In case of dynamic resizable control bars:
CExtDynamicControlBar * pBar = . . .
bool bBarIsVisible = false;
CExtDynamicControlBar::eDynamicBarState_t eDBS = pBar->BarStateGet( &bBarIsVisible );
            if( bBarIsVisible )
                        eDBS = pBar->BarStateSet( eDBS, false );