Udostępnij za pośrednictwem


CMFCToolBarMenuButton::GetPopupMenu

Returns a pointer to the CMFCPopupMenu Class object that represents the drop-down menu of the button.

CMFCPopupMenu* GetPopupMenu() const;

Return Value

A pointer to a CMFCPopupMenu Class object that was created when the framework drew the submenu of the toolbar menu button; NULL if no submenu is displayed.

Remarks

When a toolbar menu button displays a drop-down menu, the button creates a CMFCPopupMenu Class object to represent the menu. Call this method to obtain a pointer to the CMFCPopupMenu object. You should not store the returned pointer, because it is temporary and becomes invalid when the user closes the drop-down menu.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart