Share via


CWindow::GetDlgItemText

Retrieves a control's text.

UINT GetDlgItemText( 
   int nID, 
   LPTSTR lpStr, 
   int nMaxCount  
) const throw(); 
BOOL GetDlgItemText( 
   int nID, 
   BSTR& bstrText  
) const throw();

Remarks

See GetDlgItemText in the Windows SDK.

Remarks

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.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::SetDlgItemText

CWindow::GetDlgItem