BCGControlBar Pro for MFC
CBCGPPopupMenu* CBCGPPopupMenu::GetParentPopupMenu ( ) const

Returns a pointer to a parent popup menu object.

Returns
A pointer to a parent CBCGPPopupMenu object. It is NULL if the popup menu is not a submenu.

Use this function to retrieve a pointer to a parent popup menu, if any, for the given popup menu. The popup menu object have a parent only if it is a submenu.