CWindow::MessageBox

Visualizza una finestra di messaggio.

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

Note

Vedere MessageBox in Windows SDK.

Esempio

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

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow