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

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 returns FALSE.

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

Reimplemented in CBCGPDockingControlBar.