OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5115778
)
MainFrm.h: Do not call SetRedraw() when MDI child window is not maximized
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 3 Oct 2020 07:19:03 +0000
(16:19 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 3 Oct 2020 07:19:03 +0000
(16:19 +0900)
Src/MainFrm.h
patch
|
blob
|
history
diff --git
a/Src/MainFrm.h
b/Src/MainFrm.h
index
7d4d8de
..
55639ff
100644
(file)
--- a/
Src/MainFrm.h
+++ b/
Src/MainFrm.h
@@
-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);