Udostępnij za pośrednictwem


CMFCToolBar::GetButtonText

Returns the text label of a button that has a specified index.

CString GetButtonText(
   int nIndex 
) const;
void GetButtonText(
   int nIndex,
   CString& rString 
) const;

Parameters

  • [in] nIndex
    The index of a toolbar button.

  • [out] rString
    The label text of the toolbar button.

Return Value

The label text of the toolbar button.

Remarks

Call CMFCToolBar::SetButtonText or CMFCToolBar::SetToolBarBtnText to set the text label.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart