Call this member function to retrieve the title or text associated with a control in a dialog box. This function copies the text to the location pointed to by lpStr and returns a count of the number of bytes it copies.
int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const;
int GetDlgItemText( int nID, CString& rString ) const;
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::GetDlgItem, CWnd::GetDlgItemInt