Re: [COMCTL32] Listview: Store DC before calling PREPAINT
Jan. 30, 2006
8:42 p.m.
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
7361
Age (days ago)
7361
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Shearman