[Bug 59448] New: Emulate undocumented behaviors of MS TreeView customdraw
http://bugs.winehq.org/show_bug.cgi?id=59448 Bug ID: 59448 Summary: Emulate undocumented behaviors of MS TreeView customdraw Product: Wine Version: 11.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: comctl32 Assignee: wine-bugs@list.winehq.org Reporter: p@perkele.cc Distribution: --- Created attachment 80432 --> http://bugs.winehq.org/attachment.cgi?id=80432 Minimal repro code MS TreeView can be made draw items with app-supplied selection state, allowing native-looking multi-selection support. Specifically, NM_CUSTOMDRAW CDDS_ITEMPREPAINT handler can set CDIS_SELECTED flag, causing the item to be drawn selected. Setting Explorer theme seems to enable the behavior, uItemState changes appear ignored otherwise. Wine currently does not emulate this behavior. Recommended change: pay attention to CDDS_ITEMPREPAINT altering uItemState and use changed state for drawing - but only if Explorer theme is set. Test C program attached: * 2 tree views, left themeless, right with Explorer theme * Custom draw handler sets CDIS_SELECTED everywhere * Windows behavior: left ignores CDIS_SELECTED, right draws all selected -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59448 Piotr Pawłowski <p@perkele.cc> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla