{"id":42,"date":"2007-05-08T15:33:21","date_gmt":"2007-05-08T13:33:21","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/windowsxp-listview-error-with-xp-style\/"},"modified":"2007-05-11T19:42:25","modified_gmt":"2007-05-11T17:42:25","slug":"windowsxp-listview-error-with-xp-style","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/windowsxp-listview-error-with-xp-style\/","title":{"rendered":"WindowsXP: ListView error with XP-Style"},"content":{"rendered":"<p><em>> When you give a Delphi application the Windows XP look using the WindowsXP<br \/>\n> manifest XML file, whenever a TListView with columns is displayed the<br \/>\n> application generates an access violation error.<br \/>\n><br \/>\n> How can I fix this?<\/em><\/p>\n<p>You need to modify a few lines in comctrls.pas and save it to another<br \/>\ndirectory.  Put this directory in you search path before the VCL directory.<\/p>\n<p>Change<br \/>\n[code lang=&#8221;delphi&#8221;]<br \/>\n      if FImageIndex <> -1 then<br \/>\n        fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES;<br \/>\n[\/code]<br \/>\nTo<\/p>\n<p>[code lang=&#8221;delphi&#8221;]     if FImageIndex <> -1 then<br \/>\n        fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES<br \/>\n      else<br \/>\n        mask := mask and not (LVCF_IMAGE);[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>> When you give a Delphi application the Windows XP look using the WindowsXP > manifest XML file, whenever a TListView with columns&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,80],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-G","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/42"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}