CToolBarCtrl::GetString

Retrieves a toolbar string.

int GetString(
   int nString,
   LPTSTR lpstrString,
   int cchMaxLen 
) const;
int GetString(
   int nString,
   CString& str 
) const;

Parameters

  • nString
    Index of the string.

  • lpstrString
    Pointer to a buffer used to return the string.

  • cchMaxLen
    Length of the buffer in bytes.

  • str
    The string.

Return Value

The length of the string if successful, -1 if not.

Remarks

This member function implements the behavior of the Win32 message TB_GETSTRING, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::AddString

Other Resources

CToolBarCtrl Members