Call this member function to retrieve a string from a list box. The second form of this member function fills a CString object with the string text.
int GetText( int nIndex, LPTSTR lpszBuffer ) const;
void GetText( int nIndex, CString& rString ) const;
| Header File | Afxwin.h |
| Platforms | |
| Versions | 1.0 and later |
| Complete documentation | Visual C++ documentation |
CListBox Overview, CListBox Member Functions, Control Classes, CListBox::GetTextLen