BCGControlBar Pro for MFC
CBCGPPopupMenu* CBCGPToolbarMenuButton::GetPopupMenu ( ) const

Returns a pointer to the button's popup menu.

A pointer to a CBCGPPopupMenu object, which was created when the toolbar menu button's submenu was activated. It can be NULL if no submenu is displayed.

When a toolbar menu button displays a popup menu, it creates a CBCGPPopupMenu object. Call this function to get a pointer to the popup menu. You should not store the returned pointer, because it is temporary and becomes invalid when the popup menu is closed.