https://bugs.winehq.org/show_bug.cgi?id=44329
Bug ID: 44329 Summary: Listview custom draw in report mode uses wrong state of LV_ITEM using LVIS_STATEIMAGEMASK Product: Wine Version: 3.0-rc5 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: lisitski.segrey@gmail.com
Created attachment 60193 --> https://bugs.winehq.org/attachment.cgi?id=60193 Wrong result in WINE
I'm trying to create my own Listview in report mode, using custom draw.
When I try to check does Item have a state image using LVIS_STATEIMAGEMASK, WINE says that subItem has state image too(See attached screenshot)
By MSDN:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb774760(v=vs.85).a...
Bits 12 through 15 of this member specify the state image index. The state image is displayed next to an item's icon to indicate an application-defined state. If these bits are zero, the item has no state image. To isolate these bits, use the LVIS_STATEIMAGEMASK mask. To set the state image index, use the INDEXTOSTATEIMAGEMASK macro. The state image index specifies the index of the image in the state image list that should be drawn. The state image list is specified with the LVM_SETIMAGELIST message.
Source code: https://drive.google.com/open?id=1FlwWEIn2r_CJfw_OWLJmq2Cb8N_ciruw
Executables: https://drive.google.com/open?id=1QdnYBvDQiSOEmHMWLQpYDDGLRI6ZnTTl