OSDN Git Service

MainFrm.h: Do not call SetRedraw() when MDI child window is not maximized
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 3 Oct 2020 07:19:03 +0000 (16:19 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 3 Oct 2020 07:19:03 +0000 (16:19 +0900)
Src/MainFrm.h

index 7d4d8de..55639ff 100644 (file)
@@ -154,8 +154,7 @@ protected:
                                // To reduce flicker in maximized state, disable drawing while messing with MDI child frames
                                BOOL bMaximized;
                                HWND hwndActive = reinterpret_cast<HWND>(SendMessage(WM_MDIGETACTIVE, 0, reinterpret_cast<LPARAM>(&bMaximized)));
-                               if ((bMaximized || (message == WM_MDICREATE && 
-                                       (!hwndActive || !GetOptionsMgr()->GetBool(OPT_CLOSE_WITH_OK)))) &&
+                               if ((bMaximized || (message == WM_MDICREATE && !hwndActive)) &&
                                        SetTimer(m_nRedrawTimer, USER_TIMER_MINIMUM, nullptr))
                                {
                                        SetRedraw(FALSE);