[PATCH] comctl32: status: don't issue a WM_PAINT during a WM_CREATE

Mikołaj Zalewski mikolaj at zalewski.pl
Wed Jul 16 10:47:29 CDT 2008


---
 dlls/comctl32/status.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c
index 33ffcbf..3744280 100644
--- a/dlls/comctl32/status.c
+++ b/dlls/comctl32/status.c
@@ -934,15 +934,13 @@ STATUSBAR_WMCreate (HWND hwnd, const CREATESTRUCTA *lpCreate)
 
     STATUSBAR_NotifyFormat(infoPtr, infoPtr->Notify, NF_REQUERY);
 
-    GetClientRect (hwnd, &rect);
-    InvalidateRect (hwnd, &rect, 0);
-    UpdateWindow(hwnd);
-
     ZeroMemory (&nclm, sizeof(nclm));
     nclm.cbSize = sizeof(nclm);
     SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, nclm.cbSize, &nclm, 0);
     infoPtr->hDefaultFont = CreateFontIndirectW (&nclm.lfStatusFont);
 
+    GetClientRect (hwnd, &rect);
+
     /* initialize simple case */
     infoPtr->part0.bound = rect;
     infoPtr->part0.text = 0;
-- 
1.5.4


--------------070900020308040304030700--



More information about the wine-patches mailing list