[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [COMCTL32] Listview: Store DC before calling PREPAINT
From:       Robert Shearman <rob () codeweavers ! com>
Date:       2006-01-30 20:42:23
Message-ID: 43DE7A2F.7040508 () codeweavers ! com
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic