comctl32: statusbar: Don't issue a WM_PAINT during a WM_CREATE.
This commit is contained in:
parent
d247953687
commit
f7cda904cd
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue