[Bug 27854] ListView_SetTextBkColor doesn't work

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Sep 29 18:03:18 CDT 2011


--- Comment #1 from Nikolay Sivov <bunglehead at gmail.com> 2011-09-29 18:03:18 CDT ---
This is not about LVM_SETTEXTBKCOLOR not working, it works fine and sets
CLR_NONE if asked to. The problem is in custom draw code that expects some
fields to be set in notification handler:

    infoPtr->clrTextBk = nmlvcd.clrTextBk;
    infoPtr->clrText = nmlvcd.clrText;

mnlvcd.* fields are not set and contain previously assigned values,
LVM_SETTEXTBKCOLOR goes after notification SendMessage() and before mentioned
lines so we never get CLR_NONE.

If you comment out first line you'll see transparent text, I feel like all
custom draw code should be inspected, cause such context dependencies are hard
to resolve without breaking anything.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.

More information about the wine-bugs mailing list