Sdílet prostřednictvím


CWindow::MessageBox

Zobrazí okno se zprávou.

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

Poznámky

Viz MessageBox v .

Příklad

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

Požadavky

Záhlaví: atlwin.h

Viz také

Referenční dokumentace

Třída CWindow