CWindow::MessageBox

This method displays a message box.

Syntax

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

At a Glance

Header file: Atlwin.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

Remarks

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

MB_SYSTEMMODAL

MB_TASKMODAL

MB_HELP

MB_RIGHT

MB_RTLREADING

MB_DEFAULT_DESKTOP_ONLY

MB_SERVICE_NOTIFICATION

MB_USERICON

See Also

CWindow Overview, CWindow Methods