다음을 통해 공유


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

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow 클래스

CWindow::GetWindowText