BCGControlBar Pro for MFC
virtual HMENU CBCGPToolbarMenuButton::CreateMenu ( ) const
virtual

Creates a Windows menu from a list of commands associated with the toolbar menu button.

Returns
A handle to Windows menu if success. It is NULL if the list of commands associated with the toolbar menu button is empty.

The function exports a list of commands associated with the toolbar menu button to the Windows menu. You can override this function to customize this behavior.