List View text background color different in comctl 5 vs. comctl 6

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2V0aA==?=

    List View text background color different in comctl 5 vs. comctl 6

    I have a simple test application with a list view using custom draw to change
    the text background color. The list view uses a background image which I set
    using

    LVBKIMAGE img = {LVBKIF_SOURCE_ URL, NULL, "file://C:\\source\\mcp \\ebs.jpg"};
    ListView_SetBkI mage(hList, &img);

    I have a linker pragma comment that I use to engage comctl32.dll version 6
    to get the XP visual styles:

    #pragma comment (linker, "/manifestdepende ncy:\"type='win 32'
    name='Microsoft .Windows.Common-Controls' version='6.0.0. 0'
    processorArchit ecture='*' publicKeyToken= '6595b64144ccf1 df' language='*'\"" )

    Now the problem is that when using comctl 6, the list view items don't use
    the background color specified in my custom draw handler. When using comctl
    5, the background color is fine. Any ideas???

    Seth
Working...