CMFCToolBar::GetDroppedDownMenu

 

Retrieves a pointer to the menu button object that is currently displaying its sub-menu.

Syntax

CMFCToolBarMenuButton* GetDroppedDownMenu(
   int* pIndex = NULL
) const;

Parameters

  • [out] pIndex
    Receives the index of the button in the collection of toolbar buttons.

Return Value

A pointer to the menu button object that is displaying its sub-menu or NULL if no menu is displaying its sub-menu.

Remarks

If this method returns a non-NULL value and pIndex is not NULL, the value pointed to by pIndex is set to the index of the menu button in the collection of toolbar buttons.

Requirements

Header: afxtoolbar.h

See Also

CMFCToolBar Class
Hierarchy Chart