|
-
Apr 28th, 2002, 07:39 PM
#1
Thread Starter
Lively Member
MessageBox
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++.
Last edited by slx47; Apr 28th, 2002 at 07:52 PM.
-
Apr 28th, 2002, 09:16 PM
#2
Frenzied Member
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
-
Apr 28th, 2002, 11:23 PM
#3
PowerPoster
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);
-
Apr 29th, 2002, 02:15 AM
#4
Addicted Member
What's the difference between MessageBox and MessageBoxEx?
-
Apr 29th, 2002, 05:58 AM
#5
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 29th, 2002, 08:28 AM
#6
Addicted Member
ok, thanks
I'll try that MessageBoxIndirect and if I'll have any problems, I know who to turn to
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|