BCGControlBar Pro for MFC
virtual BOOL CBCGPDockingControlBar::CanAcceptBar ( const CBCGPBaseControlBar pBar) const
inlinevirtual

Determines whether another control bar can be docked to this control bar.

Returns
Nonzero if another control bar can be accepted; otherwise 0.

This function is usually called by the framework before a control bar specified by pBar is docked to this control bar.

Override this function in a derived class to enable/disable docking to a specific control bar according to custom conditions/requirements.

The default implementation checks the runtime class information of pBar or its parent and returns TRUE if it's of type CBCGPDockingControlBar.

Parameters
pBarA pointer to another control bar that is being docked to this control bar.

Reimplemented from CBCGPBaseControlBar.