|
-
Nov 4th, 2001, 01:27 PM
#1
Thread Starter
New Member
Need help
I did this before,but haven't done it in a long time so I forgot.It's very easy to do.I can't remeber what is the script to make a yes or no button appear in a msgbox.It goes something like this
msgbox "hello"
mb_yesno
iff mbresult = yes Then
MsgBox "bye"
ElseIf mbresult = no Then
msgbox "bye"
i would be very grateful if someone would tell me how to make the yes or no appear correct and if they could tell me if im doing anything else wrong.
-
Nov 4th, 2001, 01:32 PM
#2
Frenzied Member
int test;
yes = MessageBox(hWnd, "Hello", "Hi", MB_YESNO);
if(test==ID_YES) { bla bla bla; }
if(test==ID_NO) {bla bla; }
-
Nov 4th, 2001, 01:59 PM
#3
Originally posted by SteveCRM
int test;
yes = MessageBox(hWnd, "Hello", "Hi", MB_YESNO);
if(test==ID_YES) { bla bla bla; }
if(test==ID_NO) {bla bla; }
Code:
int test;
test = MessageBox(hWnd, "Hello", "Hi", MB_YESNO);
if(test==ID_YES) { bla bla bla; }
if(test==ID_NO) {bla bla; }
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 5th, 2001, 05:38 PM
#4
Frenzied Member
grrrrrr....I rewrote that 3 times because I kept missing something out.....apparently I missed that one
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
|