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.