Advertisement
metalx1000

Basic Windows Dialog (tested in Win 3.1)

Feb 15th, 2024
1,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <windows.h>
  2. #include <stdio.h>
  3.  
  4.  
  5. int main()
  6. {
  7.     int msgboxID = MessageBox(
  8.         NULL,
  9.         "Do you want a\nFart Box?",
  10.         "Question",
  11.         MB_YESNO
  12.     );
  13.  
  14.     switch (msgboxID)
  15.     {
  16.     case IDYES:
  17.     MessageBox(NULL,"FART","FART BOX",MB_OK);
  18.         break;
  19.     case IDNO:
  20.     MessageBox(NULL,"Nothing to Smell Here","My Message",MB_OK);
  21.         break;
  22.     }
  23.  
  24.     return 0;
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement