BCGControlBar Pro for MFC
virtual CBCGPAutoHideToolBar* CBCGPDockingControlBar::SetAutoHideMode ( BOOL  bMode,
DWORD  dwAlignment,
CBCGPAutoHideToolBar *  pCurrAutoHideBar = NULL,
BOOL  bUseTimer = TRUE 
)
virtual

Switches the bar to the autohide mode and back

Returns
A pointer to the autohide toolbar that has been created as a result of switching to the autohide mode or NULL.

This function is called by the framework when the use clicks the pin button to switch the docking control bar to the autohide mode or back to the regular docking mode.

You can call this function to switch a docking control bar to the autohide mode programmatically. The control bar must be docked to the main frame window (GetDefaultSlider() must return a valid pointer to the default slider).

Parameters
bModeTRUE - switch to the autohide mode, FALSE - return to the regular docking mode.
dwAlignmentSpecifies the alignment of the autohide bar to create.
pCurrAutoHideBarA pointer to the autohide toolbar. Can be NULL.
bUseTimerSpecifies whether to use the autohide effect when the control bar has been switched to the autohide mode or hide the control bar immediately.