Compartir a través de


CWindow::MessageBox

Muestra un cuadro de mensaje.

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

Comentarios

Vea MessageBox en Windows SDK.

Ejemplo

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

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow