mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
+10
-7
@@ -109,10 +109,10 @@ static HRGN clipregion = (HRGN)0;
|
||||
static HDC g_hFrameDC = (HDC)0;
|
||||
static RECT framerect = {0,0,0,0};
|
||||
|
||||
HWND g_hFrameWindow = (HWND)0;
|
||||
BOOL g_bIsFullScreen = 0;
|
||||
BOOL g_bConfirmReset = 1; // saved PageConfig REGSAVE
|
||||
BOOL g_bMultiMon = 0; // OFF = load window position & clamp initial frame to screen, ON = use window position as is
|
||||
HWND g_hFrameWindow = (HWND)0;
|
||||
BOOL g_bIsFullScreen = 0;
|
||||
BOOL g_bConfirmReboot = 1; // saved PageConfig REGSAVE
|
||||
BOOL g_bMultiMon = 0; // OFF = load window position & clamp initial frame to screen, ON = use window position as is
|
||||
|
||||
static BOOL helpquit = 0;
|
||||
static BOOL g_bPaintingWindow = 0;
|
||||
@@ -1682,15 +1682,18 @@ static void ScreenWindowResize(const bool bCtrlKey)
|
||||
|
||||
static bool ConfirmReboot(bool bFromButtonUI)
|
||||
{
|
||||
if (!bFromButtonUI || !g_bConfirmReset)
|
||||
if (!bFromButtonUI || !g_bConfirmReboot)
|
||||
return true;
|
||||
|
||||
int res = MessageBox(g_hFrameWindow,
|
||||
"Are you sure you want to reboot?\n"
|
||||
"(All data will be lost!)\n"
|
||||
"\n"
|
||||
"You can skip this dialog from displaying by unchecking:\n"
|
||||
" [ ] Confirm reset\n"
|
||||
"You can skip this dialog from displaying\n"
|
||||
"in the future by unchecking:\n"
|
||||
"\n"
|
||||
" [ ] Confirm reboot\n"
|
||||
"\n"
|
||||
"in the Configuration dialog.\n"
|
||||
, "Reboot", MB_ICONWARNING|MB_YESNO);
|
||||
return res == IDYES;
|
||||
|
||||
Reference in New Issue
Block a user