Partager 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

Reference

CMFCRibbonCategory Class

Hierarchy Chart