Compartilhar via


CMFCPopupMenu::GetSelItem

Returns a pointer to the currently selected menu command.

CMFCToolBarMenuButton* GetSelItem();

Return Value

A pointer to the currently selected menu command; NULL if no item is selected.

Remarks

The menu commands on a pop-up menu are represented by the CMFCToolBarMenuButton Class, or a class derived from CMFCToolBarMenuButton.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart

CMFCToolBarMenuButton Class