Поделиться через


CToolBarCtrl::GetString

Retrieves a toolbar string.

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

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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

Требования

Header: afxcmn.h

См. также

Основные понятия

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::AddString