where in the win32 code do u insert a messagebox command. Im not sure where to put the code. Does anyone know where it goes or do u create your own function ?
I should mension that im not using microsofts compiler, im using dev c++.
Printable View
where in the win32 code do u insert a messagebox command. Im not sure where to put the code. Does anyone know where it goes or do u create your own function ?
I should mension that im not using microsofts compiler, im using dev c++.
well it depends when you want to have a messagebox appear...ifi you want it on the startup of your program put it right before your message loop :)
If you are asking what function to use to show a message box then here is an example:
PHP Code:MessageBox(NULL, "Hello Dude!", "My Caption", MB_OK);
What's the difference between MessageBox and MessageBoxEx?
MessageBoxEx has the additional langID parameter which you can use to specify the language of the message box buttons.
The mightiest of the MessageBox* functions is MessageBoxIndirect, where you can use string resources for the caption and text, specify your own icon, use context help and a language identifier.
ok, thanks
I'll try that MessageBoxIndirect and if I'll have any problems, I know who to turn to :)