CWindow::MessageBox

This method displays a message box.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

Remarks

CWindow::MessageBox does not support the constants IDCLOSE or IDHELP as return values. It also does not support the following styles for the nType parameter:

MB_SYSTEMMODAL MB_RTLREADING
MB_TASKMODAL MB_DEFAULT_DESKTOP_ONLY
MB_HELP MB_SERVICE_NOTIFICATION
MB_RIGHT MB_USERICON