CWindow::SetWindowText

BOOL SetWindowText( LPCTSTR lpszString );

See SetWindowText in the Win32 SDK.

Remarks

Changes the window's text.

Example

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::SetWindowText() to set the new title-text of the 
//window

CWindow myWindow;
myWindow.Attach(hWndFoo);
myWindow.SetWindowText(_T("Hello ATL"));

CWindow OverviewClass Members

See Also   CWindow::GetWindowText