June 9th, 2004, 02:58 PM
Join Date: May 2004
Time spent in forums: < 1 sec
Reputation Power: 0
here's an example:
MessageBox(NULL, "hello", "bonjour(s)", MB_OK);
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
To know which one was clicked you can check the result
of the function call.
if (MessageBox(NULL, "fromat c: ?", "bonjour(s)", MB_OK)
// button ok has been pressed
You can check all the macros in the msdn