Simple Windows Question
I am currently just starting learning windows programming and
have been mucking around with MessageBox commands.
Just wondering how to check the return value of a messagebox, for example this is a part from my code:
......
int choice = MessageBox(NULL,"Click yes or no","hello",
MB_YESNO);
if (choice==ID_YES)
.....
I''ve tried that but it doesn''t work, do I have to go deeper into windows and use handles and the like to make this work, or is it possible with just the above code? (I think I got the ID_YES part wrong)
Ain''t important, just wondering..
chacha
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement