| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <SDL3/SDL.h>
- const unsigned int MB_MASK_BUTTON = 0x000F;
- const unsigned int MB_ABORTRETRYIGNORE = 0x0002;
- const unsigned int MB_CANCELTRYCONTINUE = 0x0006;
- // const unsigned int MB_HELP = 0x00004000L; // not supported
- const unsigned int MB_OK = 0x0000;
- const unsigned int MB_OKCANCEL = 0x0001;
- const unsigned int MB_RETRYCANCEL = 0x0005;
- const unsigned int MB_YESNO = 0x0004;
- const unsigned int MB_YESNOCANCEL = 0x0003;
- const unsigned int MB_MASK_ICON = 0x00F0;
- // const unsigned int MB_ICONEXCLAMATION = 0x0030;
- const unsigned int MB_ICONWARNING = SDL_MESSAGEBOX_WARNING;
- const unsigned int MB_ICONINFORMATION = SDL_MESSAGEBOX_INFORMATION;
- // const unsigned int MB_ICONASTERISK = 0x0040;
- // const unsigned int MB_ICONQUESTION = 0x0020;
- // const unsigned int MB_ICONSTOP = 0x0010;
- const unsigned int MB_ICONERROR = SDL_MESSAGEBOX_ERROR;
- // const unsigned int MB_ICONHAND = 0x0010;
- const unsigned int IDABORT = 3;
- const unsigned int IDCANCEL = 2;
- const unsigned int IDCONTINUE = 11;
- const unsigned int IDIGNORE = 5;
- const unsigned int IDNO = 7;
- const unsigned int IDOK = 1;
- const unsigned int IDRETRY = 4;
- const unsigned int IDTRYAGAIN = 10;
- const unsigned int IDYES = 6;
- int MessageBox(SDL_Window *parent, char const *msg, char const *caption, unsigned int type);
|