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