question about message boxes
[php]
#include <windows.h> // include the basic windows header file
// the entry point for any Windows program
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd)
{
// create a "Hello World" message box using MessageBox()
MessageBox(NULL,
L"Hello World!",
L"Just another Hello World program!",
MB_ICONEXCLAMATION | MB_CANCELTRYCONTINUE);
return 0;
}
[/php]
How do I make stuff happen when yes, no, cancel is pushed?
I know it would have to do with the if statement but where would I use it? just getting into windows programming now. (skipped void, classes and all that stuff for now, going to get back to it tomorow)
#include <windows.h> // include the basic windows header file
// the entry point for any Windows program
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd)
{
// create a "Hello World" message box using MessageBox()
MessageBox(NULL,
L"Hello World!",
L"Just another Hello World program!",
MB_ICONEXCLAMATION | MB_CANCELTRYCONTINUE);
return 0;
}
[/php]
How do I make stuff happen when yes, no, cancel is pushed?
I know it would have to do with the if statement but where would I use it? just getting into windows programming now. (skipped void, classes and all that stuff for now, going to get back to it tomorow)

