Index: defwnd.c =================================================================== --- defwnd.c (revision 74687) +++ defwnd.c (working copy) @@ -97,6 +97,11 @@ RECT Rect; LONG style = pWnd->style; + if (!(pWnd->state2 & WNDS2_WMCREATEMSGPROCESSED)) + { + return 0; + } + IntGetClientRect(pWnd, &Rect); IntMapWindowPoints(pWnd, (style & WS_CHILD ? IntGetParent(pWnd) : NULL), (LPPOINT) &Rect, 2);