Mercurial > foo_out_sdl
comparison foosdk/sdk/foobar2000/SDK/messageBox.h @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:e9bb126753e7 | 1:20d02a178406 |
|---|---|
| 1 #pragma once | |
| 2 | |
| 3 #ifndef _WIN32 | |
| 4 #define IDOK 1 | |
| 5 #define IDCANCEL 2 | |
| 6 #define IDABORT 3 | |
| 7 #define IDRETRY 4 | |
| 8 #define IDIGNORE 5 | |
| 9 #define IDYES 6 | |
| 10 #define IDNO 7 | |
| 11 | |
| 12 #define MB_OK 0x00000000L | |
| 13 #define MB_OKCANCEL 0x00000001L | |
| 14 #define MB_ABORTRETRYIGNORE 0x00000002L | |
| 15 #define MB_YESNOCANCEL 0x00000003L | |
| 16 #define MB_YESNO 0x00000004L | |
| 17 #define MB_RETRYCANCEL 0x00000005L | |
| 18 #define MB_CANCELTRYCONTINUE 0x00000006L | |
| 19 | |
| 20 #define MB_ICONHAND 0x00000010L | |
| 21 #define MB_ICONQUESTION 0x00000020L | |
| 22 #define MB_ICONEXCLAMATION 0x00000030L | |
| 23 #define MB_ICONASTERISK 0x00000040L | |
| 24 | |
| 25 #define MB_DEFBUTTON1 0x00000000L | |
| 26 #define MB_DEFBUTTON2 0x00000100L | |
| 27 #define MB_DEFBUTTON3 0x00000200L | |
| 28 #define MB_DEFBUTTON4 0x00000300L | |
| 29 | |
| 30 #define MB_ICONWARNING MB_ICONEXCLAMATION | |
| 31 #define MB_ICONERROR MB_ICONHAND | |
| 32 #define MB_ICONINFORMATION MB_ICONASTERISK | |
| 33 #define MB_ICONSTOP MB_ICONHAND | |
| 34 | |
| 35 #endif // ! _WIN32 | |
| 36 | |
| 37 namespace fb2k { | |
| 38 // Minimalist MessageBox() drop-in replacement, calls popup_message_v3 method | |
| 39 // Works properly on non-Windows! | |
| 40 int messageBox(fb2k::hwnd_t, const char*, const char*, unsigned); | |
| 41 void messageBoxAsync(fb2k::hwnd_t, const char*, const char*, unsigned, std::function<void(int)> f = nullptr); | |
| 42 } |
