BCGControlBar Pro for MFC
virtual BOOL CBCGPBaseControlBar::CanFocus ( ) const
inlinevirtual

Specifies whether a control bar can receive focus.

Returns
If TRUE, a control bar can be focused; otherwise FALSE.

You can override this method in a derived class and return the appropriate value in order to control focus. For example, toolbars can't receive focus and therefore return FALSE by default.

The framework attempts to set the input focus automatically, when a control bar has been docked or floated.