共用方式為


CMFCRibbonPanel::GetElement

Returns the ribbon element located at a specified index.

CMFCRibbonBaseElement* GetElement(
    int nIndex 
) const;

Parameters

  • [in] nIndex
    Specifies the zero-based index of the element to retrieve.

Return Value

A valid pointer to the base ribbon element located at position nIndex in the ribbon panel, or NULL if there is no element at the specified index.

Requirements

Header: afxRibbonPanel.h

See Also

Reference

CMFCRibbonPanel Class

Hierarchy Chart