Hi all.
First off, I'm a total newbie to windows programming, and have a few questions.
1. I have a YES/NO messagebox, and I want to know what code is required to determine which button the user pressed. I tried this in a while loop :
Code:
MessageBox(NULL, " Some random text ", " Random text", MB_YESNO | MB_ICONEXCLAMATION);
if ( IDYES )
{
cout<<"Blah Blah Blah.";
MessageBox(NULL, " Some random text ", " Random text", MB_YESNO | MB_ICONEXCLAMATION);
}
But which ever button the user pressed, the message pops up again. Is this the correct syntax ? I can post the rest of the loop if you want.
2. Forgot what 2 was, but It'll come back to me.
Please help !
I'm confused.