int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;
BOOL GetWindowText( BSTR& bstrText );
See GetWindowText in the Win32 SDK.
Remarks
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.
CWindow Overview | Class Members
See Also CWindow::GetWindowTextLength, CWindow::SetWindowText