BCGControlBar Pro for MFC
CBCGPToolbarMenuButton* CBCGPPopupMenu::GetParentButton ( ) const
inline

Returns a pointer to a parent toolbar menu button.

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

Use this function to retrieve a pointer to a parent CBCGPToolbarMenuButton object. This popup menu is displayed when the user selects the parent menu item (button). If the popup menu is a context menu, it has no parent menu button.