CMFCRibbonPanel::GetIndex

Retrieves the zero-based index of the specified ribbon element from the array of ribbon elements that are contained in the ribbon panel.

virtual int GetIndex(
   CMFCRibbonBaseElement* pElem
) const;

Parameters

  • [in] pElem
    Pointer to a ribbon element.

Return Value

Zero-based index of the specified ribbon element if the method was successful; otherwise -1.

Requirements

Header: afxribbonpanel.h

See Also

Reference

CMFCRibbonPanel Class

Hierarchy Chart