Toolbar background error

Alexandre Julliard julliard at
Fri Aug 17 14:42:04 CDT 2001

Gerard Patel <gerard.patel at> writes:

> Now if I add immediately after  :
> hdc = GetWindowDC(hwnd);
> SendMessage(hwnd, WM_ERASEBKGND, (WPARAM) hdc, 0);
> ReleaseDC(hwnd, hdc);
> I get a window that is completely white; maybe I am missing something but
> I should see a small brown strip at the lower part of the window, corresponding
> to the caption + menu height, no ?

Yes; actually I realize now that my test app uses the CS_PARENTDC
style, which is why I see that. The behavior that you observe is what
happens without CS_PARENTDC; so it's actually more complex that I
thought, we'll need to explicitly test the CS_PARENTDC flag. Sigh...

Alexandre Julliard
julliard at

More information about the wine-devel mailing list