Advertisement

Simple Windows Question

Started by December 27, 2002 08:47 AM
0 comments, last by julienX 21 years, 10 months ago
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
Yes that will work...

Your problem is that it is IDYES not ID_YES

This topic is closed to new replies.

Advertisement