[COMCTL32] Listview: Store DC before calling PREPAINT

Robert Shearman rob at codeweavers.com
Mon Jan 30 14:42:23 CST 2006

Maarten Lankhorst wrote:

> Some applications like to use PREPAINT to set fonts, nothing wrong 
> with that, only DC is never restored, resulting in drawing glitches.
> Changelog:
> Save and restore DC on every listview item drawn.

I don't think native would do this. SaveDC / RestoreDC seems like an 
overkill. It would seem better to just call SelectObject to save and 
restore the font each time. You should then also test for the 
CDRF_NEWFONT flag and act appropriately.

Rob Shearman

More information about the wine-devel mailing list