Call this member function to retrieve the title or text associated with a control in a dialog box.
int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const; int GetDlgItemText( int nID, CString& rString ) const;
Specifies the integer identifier of the control whose title is to be retrieved.
Points to the buffer to receive the control's title or text.
Specifies the maximum length (in characters) of the string to be copied to lpStr. If the string is longer than nMaxCount, it is truncated.
A reference to a CString.