CToolBar::GetButtonText

Call this member function to retrieve the text that appears on a button.

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

Parameters

  • nIndex
    Index of the text to be retrieved.

  • rString
    A reference to a CString object that will contain the text to be retrieved.

Return Value

A CString object containing the button text.

Remarks

The second form of this member function fills a CString object with the string text.

Requirements

Header: afxext.h

See Also

Reference

CToolBar Class

Hierarchy Chart

CToolBar::SetButtonText