BCGControlBar Pro for MFC
HMENU CBCGPTasksPane::CreateMenu ( ) const

Called by the framework to create the menu for the "Other Tasks Panes" 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.

This function is called by the framework to create a popup menu for the "Other Tasks Panes" menu button.

Override this member function in your CBCGPTasksPane - derived class to customize taskpane's menu.

The default implementation creates a popup menu with a list of taskpane pages and checks the menu item for the active page.