Module: wine Branch: master Commit: f7cda904cd7b3fcd37aa2b42bd43ba5553b894f6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7cda904cd7b3fcd37aa2b42bd...
Author: Mikołaj Zalewski mikolaj@zalewski.pl Date: Wed Jul 16 17:47:29 2008 +0200
comctl32: statusbar: Don't issue a WM_PAINT during a WM_CREATE.
---
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;