Share via


CMFCRibbonCategory::GetPanelIndex

Retrieves the zero-based index of the specified ribbon panel.

int GetPanelIndex(
   const CMFCRibbonPanel* pPanel 
) const;

Parameters

  • [in] pPanel
    Pointer to a ribbon panel.

Return Value

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

Remarks

Only ribbon panels that are contained in the ribbon category are searched.

Requirements

Header: afxribboncategory.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonCategory Class

Change History

Date

History

Reason

October 2008

Updated whole topic.

Information enhancement.