| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Could anyone tell me how to make a simple message box in C++, along with all the button and
icon posibilites? Maybe even be able to determine the button pressed? please. i need help.. |
|
#2
|
|||
|
|||
|
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 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 msdn http://msdn.microsoft.com/library/d.../messagebox.asp -- julien barbier |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > C++ message boxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|