Dialogs.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <SDL3/SDL.h>
  3. const unsigned int MB_MASK_BUTTON = 0x000F;
  4. const unsigned int MB_ABORTRETRYIGNORE = 0x0002;
  5. const unsigned int MB_CANCELTRYCONTINUE = 0x0006;
  6. // const unsigned int MB_HELP = 0x00004000L; // not supported
  7. const unsigned int MB_OK = 0x0000;
  8. const unsigned int MB_OKCANCEL = 0x0001;
  9. const unsigned int MB_RETRYCANCEL = 0x0005;
  10. const unsigned int MB_YESNO = 0x0004;
  11. const unsigned int MB_YESNOCANCEL = 0x0003;
  12. const unsigned int MB_MASK_ICON = 0x00F0;
  13. // const unsigned int MB_ICONEXCLAMATION = 0x0030;
  14. const unsigned int MB_ICONWARNING = SDL_MESSAGEBOX_WARNING;
  15. const unsigned int MB_ICONINFORMATION = SDL_MESSAGEBOX_INFORMATION;
  16. // const unsigned int MB_ICONASTERISK = 0x0040;
  17. // const unsigned int MB_ICONQUESTION = 0x0020;
  18. // const unsigned int MB_ICONSTOP = 0x0010;
  19. const unsigned int MB_ICONERROR = SDL_MESSAGEBOX_ERROR;
  20. // const unsigned int MB_ICONHAND = 0x0010;
  21. const unsigned int IDABORT = 3;
  22. const unsigned int IDCANCEL = 2;
  23. const unsigned int IDCONTINUE = 11;
  24. const unsigned int IDIGNORE = 5;
  25. const unsigned int IDNO = 7;
  26. const unsigned int IDOK = 1;
  27. const unsigned int IDRETRY = 4;
  28. const unsigned int IDTRYAGAIN = 10;
  29. const unsigned int IDYES = 6;
  30. int MessageBox(SDL_Window *parent, char const *msg, char const *caption, unsigned int type);