C++ message boxes

Discuss C++ message boxes in the C/C++ Help forum on Dev Articles. C++ message boxes C/C++ Help forum discussing building and maintaining applications in C/C++. Find out why these languages are the foundation on which other languages are built.

This code diplays a message box with title "bonjour(s)"
and text "hello".
The last argument will determine which 'type' of message
box will be display. Here MB_OK means only with the OK
button. You can ahve also the CANCEL button by passing
MB_OKCANCEL.
To know which one was clicked you can check the result
of the function call.
for instance:
if (MessageBox(NULL, "fromat c: ?", "bonjour(s)", MB_OK)
== IDOK)
{
// button ok has been pressed
}
You can check all the macros in the msdnhttp://msdn.microsoft.com/library/d.../messagebox.asp