Don't call WM_ERASEBKGND in DrawThemeParentBackground. It breaks VideoRedo groupbox drawing. Instead call WM_PRINTCLIENT with PRF_ERASEBKGND.

Bellengé Maxime maxime.bellenge at gmail.com
Thu Jul 21 06:33:54 CDT 2011


---
 dlls/uxtheme/draw.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index 17900f8..1da7839 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -114,9 +114,8 @@ HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
     }
 
     OffsetViewportOrgEx(hdc, -rt.left, -rt.top, &org);
-
-    SendMessageW(hParent, WM_ERASEBKGND, (WPARAM)hdc, 0);
-    SendMessageW(hParent, WM_PRINTCLIENT, (WPARAM)hdc, PRF_CLIENT);
+  
+    SendMessageW(hParent, WM_PRINTCLIENT, (WPARAM)hdc, PRF_CLIENT|PRF_ERASEBKGND);
 
     SetViewportOrgEx(hdc, org.x, org.y, NULL);
     if(prc) {
-- 
1.7.6


--=-W/7nHws5W8546dOa0mcx--




More information about the wine-patches mailing list