CWnd::GetDlgItemText

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.

Syntax

int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const;

int GetDlgItemText( int nID, CString& rString ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::GetDlgItem, CWnd::GetDlgItemInt