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


CWindow::SetWindowText

Изменяет текст окна.

BOOL SetWindowText( 
   LPCTSTR lpszString  
) throw();

Заметки

См. раздел SetWindowText в 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::GetWindowText