How do I make an event handler for a button in the MessageBox?
I know how to make buttons with event handlers, and I somewhat know how to do this. What I do is this:
1 2 3 4 5 6
|
MessageBox(hwnd, "Do you really want to leave?", "Leaving?", MB_YESNO);
if("YES")
PostQuitMessage(0);
else if("NO")
//whatever I will put here...
|
So, anyway, I put that but if I click No, it will do what I prompted 'yes' to do. How do I make 'no' to do a separate action?
Alright thanks for the link and answer. Both were Extremely helpful.
Topic archived. No new replies allowed.