BCGControlBar Pro for MFC
virtual BOOL CBCGPControlBar::OnShowControlBarMenu ( CPoint  point)

Called by the framework when a special control bar menu is about to be displayed.

Should return nonzero if menu can be displayed; otherwise 0.

A special control bar menu contains the following items: Floating, Docking, AutoHide, Hide. It can be enabled for all docking bars by using CBCGPDockManager::EnableDockBarMenu.

pointSpecifies the menu location.