Partager via


CWindow::SetWindowText

Changes the window's text.

BOOL SetWindowText( 
   LPCTSTR lpszString  
) throw();

Remarks

See SetWindowText in the Windows SDK.

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(hWnd);
myWindow.SetWindowText(_T("Hello ATL"));

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetWindowText