CWindow::GetDlgItemText

The first implementation of this method retrieves a control’s text. The second implementation of this method allows you to copy the control’s text to a BSTR. It returns TRUE if the text is successfully copied; otherwise, it returns FALSE.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

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

See Also

CWindow::SetDlgItemText, CWindow::GetDlgItem