How to handle control bar's show/hide commands and update their associated command states in docking site like in Visual Studio .NET?

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

First, see the previous answer. The difference is in the command handling/updating for the resizable bars. These commands have no check marks and are only used to activate resizable control bars. They never hide bars. Implement the new OnBarCheck() and OnUpdateControlBarMenu() methods in the docking site:

BOOL CMainFrame::OnBarCheck( UINT nID )
{
return CExtControlBar::DoFrameBarCheckCmd(this, nID, false);
}
void CMainFrame::OnUpdateControlBarMenu( CCmdUI * pCmdUI )
{
CExtControlBar::DoFrameBarCheckUpdate(this, pCmdUI, false);
}