http://bugs.winehq.org/show_bug.cgi?id=5278
------- Additional Comments From hallo@michael-kaufmann.ch 2006-09-08 16:29 ------- I have found the problem: The edit box wants to know the background color and sends a WM_CTLCOLOR message to the parent window. The application doesn't return a brush handle, but some other value. This is a bug in the application.
This is the code how it was before my patch: SelectObject(dc, brush); Rectangle(dc, rc.left, rc.top, rc.right, rc.bottom);
The SelectObject() will fail, because the brush is invalid. But there will still be an old brush selected in the DC, and this brush is used to paint the background.
The new code: FillRect(dc, &rc, brush);
Now the whole fill function fails because the brush is invalid.
So this is an application bug. I'll try to create a patch that makes Wine look better in this case.