Поделиться через


CWindow::SetWindowText

Changes the window's text.

BOOL SetWindowText(
   LPCTSTR lpszString 
) throw();

Заметки

See SetWindowText in the Windows SDK.

Пример

//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"));

Требования

Header: atlwin.h

См. также

Основные понятия

CWindow Class

CWindow Members

CWindow::GetWindowText