다음을 통해 공유


CWindow::MessageBox

메시지 상자를 표시합니다.

int MessageBox( 
   LPCTSTR lpszText, 
   LPCTSTR lpszCaption = NULL, 
   UINT nType = MB_OK  
) throw();

설명

참조 MessageBox 에 있는 Windows SDK.

예제

//The following example attaches an HWND to the CWindow object and  
//calls CWindow::MessageBox() to pop up a Windows message box

CWindow myWindow;
myWindow.Attach(hWnd);
myWindow.MessageBox(_T("Hello World"));

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow Class