Share via


CMFCMenuBar::GetMenuItem

Retrieves a CMFCToolBarButton object on a menu bar based on the item index.

CMFCToolBarButton* GetMenuItem(
   int iItem
) const;

Parameters

  • [in] iItem
    The index of the menu item to return.

Return Value

A pointer to the CMFCToolBarButton object that matches the index specified by iItem. NULL if the index is invalid.

Requirements

Header: afxmenubar.h

See Also

Reference

CMFCMenuBar Class

Hierarchy Chart