Share via


CMFCRibbonStatusBar::GetElement

Returns a pointer to the element that is located at a specified index.

CMFCRibbonBaseElement* GetElement(
   int nIndex 
);

Parameters

  • [in] nIndex
    Specifies a zero-based index of an element that is located in the main area of the status bar control.

Return Value

A pointer to the element that is located at the specified index. NULL if the index is negative or exceeds the number of elements in the status bar.

Requirements

Header: afxribbonstatusbar.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonStatusBar Class