[PATCH] mdi: fix drawing the MDI client area when creating children.
Reece Dunn
msclrhd at googlemail.com
Tue Feb 2 16:48:00 CST 2010
Fixes http://bugs.winehq.org/show_bug.cgi?id=14312 for any MDI application.
- Reece
-------------- next part --------------
From 783df3e65a4fb463346ba8cdd7f53a3e60851cc0 Mon Sep 17 00:00:00 2001
From: Reece Dunn <msclrhd at gmail.com>
Date: Tue, 2 Feb 2010 22:37:33 +0000
Subject: [PATCH] mdi: fix drawing the MDI client area when creating children.
When there is an MDI child in the maximised state (covering the
entire MDI client area), and a new MDI child is created the MDI
windows are restored. In this case, the MDI client area needs to
be redrawn so that the workspace is shown.
---
dlls/user32/mdi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c
index 631d477..0850282 100644
--- a/dlls/user32/mdi.c
+++ b/dlls/user32/mdi.c
@@ -1132,6 +1132,7 @@ LRESULT MDIClientWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
hwnd, 0, csA->hOwner,
(LPVOID)csA->lParam);
}
+ InvalidateRect(hwnd, NULL, TRUE);
return (LRESULT)child;
}
return 0;
--
1.6.3.3
More information about the wine-patches
mailing list