comctl32: statusbar: Don't issue a WM_PAINT during a WM_CREATE.

This commit is contained in:
Mikołaj Zalewski 2008-07-16 17:47:29 +02:00 committed by Alexandre Julliard
parent d247953687
commit f7cda904cd
1 changed files with 2 additions and 4 deletions

View File

@ -934,15 +934,13 @@ STATUSBAR_WMCreate (HWND hwnd, const CREATESTRUCTA *lpCreate)
STATUSBAR_NotifyFormat(infoPtr, infoPtr->Notify, NF_REQUERY); STATUSBAR_NotifyFormat(infoPtr, infoPtr->Notify, NF_REQUERY);
GetClientRect (hwnd, &rect);
InvalidateRect (hwnd, &rect, 0);
UpdateWindow(hwnd);
ZeroMemory (&nclm, sizeof(nclm)); ZeroMemory (&nclm, sizeof(nclm));
nclm.cbSize = sizeof(nclm); nclm.cbSize = sizeof(nclm);
SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, nclm.cbSize, &nclm, 0); SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, nclm.cbSize, &nclm, 0);
infoPtr->hDefaultFont = CreateFontIndirectW (&nclm.lfStatusFont); infoPtr->hDefaultFont = CreateFontIndirectW (&nclm.lfStatusFont);
GetClientRect (hwnd, &rect);
/* initialize simple case */ /* initialize simple case */
infoPtr->part0.bound = rect; infoPtr->part0.bound = rect;
infoPtr->part0.text = 0; infoPtr->part0.text = 0;