Original Post
Hello again. I never did this particular Win32 type of program before, so I wasn''t sure on what to do. I want to create a simple heirachy based app for Windows(32). I know how to do most of it, but I had a question. Here is some test code I already wrote:
I wanted to use IF statements with YES or NO boxes, that lead to something else depending on what you pick. Can I use IF statements like this? If so, what do I put in the IF statement that branches out to different places depending on what you pick. I knew it wouldn''t work, but I tried:
.
.
.
if (YES)
{
.
.
.
}
But it didn''t work, so what do I do? Thanks a lot!
I am not worthy of a sig! ;)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
int WINAPI WinMain(HINSTANCE hinstance,
HINSTANCE hprevinstance,
LPSTR lpcmdline,
int ncmdshow)
{
MessageBox(NULL, "ARE YOU COOL?",
"COOLNESS",
MB_YESNO | MB_ICONQUESTION);
if (..........)
{
MessageBox(NULL, "HA! YEAH RIGHT!",
"COOLNESS",
MB_OK | MB_ICONEXCLAMATION);
}
if (..........)
{
MessageBox(NULL, "YEAH, THAT''S WHAT I THOUGHT!",
"COOLNESS",
MB_OK | MB_ICONEXCLAMATION);
}
return(0);
}
|
