Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Any resizable control bar (pBar), no matter it is docked or floating, can be hidden with the code below:

if( pBar->AutoHideModeGet() )
   pBar->AutoHideModeSet( false, false, true, true );
ASSERT_VALID( pBar->m_pDockSite );
pBar->m_pDockSite->ShowControlBar( pBar, FALSE, FALSE );