Announcement

Collapse
No announcement yet.

Problem: ListView NM_CUSTOMDRAW using XP Themes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem: ListView NM_CUSTOMDRAW using XP Themes

    I have an older program that uses an custom draw ListView (and also %LVS_OWNERDATA). It worked perfectly up until I recompiled a couple of weeks ago. I could not understand why the items in the ListView would no longer show.

    It appears that the problem relates to using an XP theme manifest with the program (either a standalone manifest or a resource embedded manifest). Whenever a manifest is active the listview is blank.

    I have attached a couple of screenshots showing the effect.

    Has anyone else run into this problem and have a solution available that allows the custom draw listview to display with themed support?

    Thanks!
    Attached Files
    Paul Squires
    FireFly Visual Designer (for PowerBASIC Windows 10+)
    Version 3 now available.
    http://www.planetsquires.com

  • #2
    Try it removing the %LVS_EX_GRIDLINES extended style.
    See: http://support.microsoft.com/kb/813791
    Forum: http://www.jose.it-berater.org/smfforum/index.php

    Comment


    • #3
      Hi José,

      Thanks for the link but removing that style did not fix the problem.

      Paul Squires
      FireFly Visual Designer (for PowerBASIC Windows 10+)
      Version 3 now available.
      http://www.planetsquires.com

      Comment


      • #4
        There is an issue with autosizing the first column when the listview is themed and uses LVS_OWNERDATA. This still isn't fixed in SP3+ either. Only in Vista which also adds an always autosize feature. This is broke both when double clicking in the header divider and by calling the API. If it is the cause then you can determine the text size yourself with other calls then manually size to that or make the first column's size 0 and use the 2nd column on.
        sigpic
        Mobile Solutions
        Sys Analyst and Development

        Comment

        Working...
        X