BCGControlBar Pro for MFC
CBCGPToolBar* CBCGPPopupMenu::GetParentToolBar ( ) const

Returns a pointer to a parent toolbar object.

Returns
A pointer to a parent toolbar. It is NULL if the popup menu is a context menu.

Use this function to retrieve a pointer to a parent CBCGPToolBar object. A popup menu can have no parent if it is a context menu.