computerwhiz
Programmer
how do I use the results from a user pressing "yes" or "no" in a message box? an if statement or in wndproc area?
Code:
INT Result = MessageBox(
hwnd, "This file has not been parsed.\r\n"
"Do you want to Parse this file now?",
"File not parsed",
MB_YESNO | MB_DEFBUTTON1 | MB_ICONQUESTION);
if(Result = IDYES)
{
PostMessage(hwnd, WM_COMMAND, CM_PARSE_FILE, 0);
}