Compartilhar via


CWindow::SetWindowText

Altera o texto da janela.

BOOL SetWindowText(
   LPCTSTR lpszString 
) throw();

Comentários

See SetWindowText in the Windows SDK.

Exemplo

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

Requisitos

Cabeçalho: atlwin.h

Consulte também

Referência

Classe CWindow

CWindow::GetWindowText

Outros recursos

CWindow membros