[RAPPS]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 1 Nov 2014 12:43:45 +0000 (12:43 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 1 Nov 2014 12:43:45 +0000 (12:43 +0000)
- don't resize the richedit window on minimize
CORE-6116

svn path=/trunk/; revision=65168

reactos/base/applications/rapps/winmain.c

index f7b3dbd..92d3ed3 100644 (file)
@@ -545,11 +545,14 @@ MainWndOnSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
                    HIWORD(lParam) - GetWindowHeight(hToolBar) - GetWindowHeight(hStatusBar),
                    SWP_NOZORDER|SWP_NOACTIVATE);
 
-    while (NewPos < SPLIT_WIDTH + GetWindowHeight(hToolBar))
+    if(wParam != SIZE_MINIMIZED)
     {
-        RichPos--;
-        NewPos = HIWORD(lParam) - (RichPos +
-                 SPLIT_WIDTH + GetWindowHeight(hStatusBar));
+        while (NewPos < SPLIT_WIDTH + GetWindowHeight(hToolBar))
+        {
+            RichPos--;
+            NewPos = HIWORD(lParam) - (RichPos +
+                     SPLIT_WIDTH + GetWindowHeight(hStatusBar));
+        }
     }
     SetHSplitterPos(NewPos);