CWindow::GetDlgItemText

This method retrieves a control's text. The second version of this method allows you to copy the control's text to a BSTR. This version returns TRUE if the text is successfully copied; otherwise, FALSE.

Syntax

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

BOOL GetDlgItemText( int nID, BSTR& bstrText ) const;

At a Glance

Header file: Atlwin.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CWindow Overview, CWindow Methods, CWindow::SetDlgItemText, CWindow::GetDlgItem