Fix popup and message box flags

This commit is contained in:
Philip Minakov 2026-05-24 19:42:20 +04:00
parent 2b9847b43f
commit cdedddd9cf
No known key found for this signature in database
GPG key ID: 932F1B884934DB0F

View file

@ -77,18 +77,22 @@ typedef void (*GUI_LOCRET_CALLBACK)(void);
typedef int (*MenuSearchCallBack)(void *gui, WSHDR *search);
/**
* Flags for #ShowMSG.
* */
enum MsgBoxFlags {
MSG_BOX_CANCELANLE = 1 << 0, /**< Allow cancel MsgBox withou waiting */
MSG_BOX_TRANSPARENT_BG = 1 << 1, /**< MsgBox on the transparent background */
* Popup dialog flags
*/
enum PopupDialogFlags {
POPUP_FULLSCREEN = 0x00, /**< Full-screen window */
POPUP_NORMAL = 0x01, /**< Normal (small) window */
POPUP_DUMMY_CSM = 0x10 /**< Create a dummy CSM */
};
/**
* Flags for #MsgBoxYesNo or MsgBoxOkCancel.
* Flags for #ShowMSG.
* */
enum PopupDialogFlags {
CONFITM_BOX_TRANSPARENT_BG = 1 << 0, /**< MsgBox on the transparent background */
enum MsgBoxFlags {
MSG_BOX_FULLSCREEN = POPUP_FULLSCREEN, /**< Same as #PopupDialogFlags::POPUP_FULLSCREEN */
MSG_BOX_NORMAL = POPUP_NORMAL, /**< Same as #PopupDialogFlags::POPUP_NORMAL */
MSG_BOX_DUMMY_CSM = POPUP_DUMMY_CSM, /**< Same as #PopupDialogFlags::POPUP_DUMMY_CSM */
MSG_BOX_CANCELABLE = 0x80000000, /**< Allow cancel MsgBox without waiting */
};
/**