Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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