BCGControlBar Pro for MFC
virtual BOOL CBCGPBaseControlBar::CanBeClosed ( ) const

Determines whether the control bar may be hidden.

Nonzero if the control bar can be closed (hidden); otherwise 0.

Called by the framework to determine if the control bar can be closed (hidden). If the function returns nonzero, a close button is automatically added to the control bar's caption, or caption of its mini-frame window (if the control bar is floating). Initially this ability is set by the flags passed to CBCGPBaseControlBar::CreateEx. The default implementation checks for CBRS_BCGP_CLOSE style.

Reimplemented in CBCGPToolBar.