http://bugs.winehq.org/show_bug.cgi?id=2624
--- Comment #12 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-10-15 21:21:30 --- Created an attachment (id=8598) --> (http://bugs.winehq.org/attachment.cgi?id=8598) patch
Now I think the top-level windows aren't special - when the window is invalidated manually the WM_ERASEBKGND is generated during the BeginPaint(). However it looks like the Windows equivalent of expose on a top-level window does a RedrawWindow(..., RDW_ERASENOW). This patch seems to help IrfanView and partially GeoInfo - what is drawn after the PeekMessage is shown (that is all except for the background and the legend). Tomorrow I will try to make some message sequence tests to see if it is correct.