CWindow::SetWindowText

更改窗口的文本。

BOOL SetWindowText(
   LPCTSTR lpszString 
) throw();

备注

在参见 Windows SDK的 SetWindowText

示例

//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选件类

CWindow::GetWindowText