Re: [COMCTL32] Listview: Store DC before calling PREPAINT
30 Jan
2006
30 Jan
'06
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
7255
Age (days ago)
7255
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Shearman