Freigeben über


CWindow::SetWindowText

Ändert den Text des Fensters.

BOOL SetWindowText( 
   LPCTSTR lpszString  
) throw();

Hinweise

Siehe SetWindowText in Windows SDK.

Beispiel

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

Anforderungen

Header: atlwin.h

Siehe auch

Referenz

CWindow Class

CWindow::GetWindowText