You can use one of the following three options:
1) If you are using simple control bars (CExtControlBar
)and the auto-hide feature is turned on
void CYourDialog::OnOK()
{
CExtControlBar * pBar = . . . // you should know this
if( pBar->AutoHideModeGet() )
pBar->AutoHideModeSet( false, false, true, false );
else
pBar->m_pDockSite->ShowControlBar( pBar, FALSE, FALSE );
}
2) If you are using simple bars (
CExtControlBar
) and if and the auto-hide feature is turned off
void CYourDialog::OnOK()
{
CExtControlBar * pBar = . . . // you should know this
pBar->m_pDockSite->ShowControlBar( pBar, FALSE, FALSE );
}
3) If you are using dynamic control bars (
CExtDynamicControlBar
) controlled by the
CExtDynamicBarSite
void CYourDialog::OnOK()
{
CExtDynamicControlBar * pBar = . . . // you should know this
bool bVisible = true;
CExtDynamicControlBar::eDynamicBarState_t eDBS = pBar->BarStateGet( &bVisible );
if( bVisible )
pBar->BarStateSet( eDBS, false );
}