BCGControlBar Pro for MFC
virtual BOOL CBCGPToolbarMenuButton::OnClickMenuItem ( )

Called by the framework when the user selects (clicks) a menu item.

Should return FALSE to continue the default menu item processing; otherwise TRUE.

When the user selects (clicks) a menu item the framework invokes a command associated with the selected item.

If you want to customize the menu item processing, you should override OnClickMenuItem in a CBCGPToolbarMenuButton - derived class. Then, you have to override CBCGPFrameWnd::OnShowPopupMenu and replace the buttons that require a special processing by the instances of the CBCGPToolbarMenuButton - derived class.

If OnClickMenuItem returns TRUE the further processing will be stopped. The default implementation returns FALSE.