MessageBox()
12
MessageBox (NULL, TEXT ("Yes or no?"), TEXT ("Question"), MB_YESNO | MB_DEFBUTTON1); ...
123456789
int result=MessageBox (NULL, TEXT ("Yes or no?"), TEXT ("Question"), MB_YESNO | MB_DEFBUTTON1); switch(result) { case(IDYES): //something to do in the yes case break; case(IDNO): //something to do in the no case break;