CWindow::GetWindowText

This method retrieves the window's text. The second version of this method allows you to store the text in a BSTR. If the text is successfully copied, the return value is TRUE; otherwise, the return value is FALSE.

Syntax

int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;

BOOL GetWindowText( BSTR& bstrText );

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::GetWindowTextLength, CWindow::SetWindowText