BCGControlBar Pro for MFC
virtual BOOL CBCGPToolBar::CanBeClosed ( ) const
inlinevirtual

Returns nonzero if the toolbar can be closed by the user.

Returns
Nonzero if the toolbar can be closed by the user; otherwise 0.

This function is called by the framework to determine whether a toolbar can be closed by the user. If it returns nonzero, then the framework enables SC_CLOSE command in the toolbar's system menu and this toolbar can be dismissed using check box in the list of toolbars in the customization dialog.

The default implementation returns TRUE. Override this member function to make CBCGPBaseToolBar - derived objects permanent.

Reimplemented from CBCGPBaseControlBar.