Einzelnen Beitrag anzeigen

rd5pro
(Gast)

n/a Beiträge
 
#1

TListView patch for Delphi 5-6 (maybe 7) - Critical

  Alt 26. Sep 2006, 19:27
Beim Schmökern gefunden:

TListView patch for Delphi 5-6 (maybe 7) - Critical
---------------------------------------------------
Since program uses TListView control, VCL must be patched to prevent
Access Violations during ListView drawing under Windows XP.
Patch is the following. Open ComCtrls.pas, search for TCustomListView.UpdateColumn.
Replace:
Delphi-Quellcode:
    if FImageIndex <> -1 then
        fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES;
with:
Delphi-Quellcode:
     if FImageIndex <> -1 then
       fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES
     else
       mask := mask and not (LVCF_IMAGE);
Recompile and update ComCtrls.dcu in Delphi Lib folder.
Patch by Matteo Riso.

Roland

[edit=SirThornberry] Mfg, SirThornberry[/edit]
  Mit Zitat antworten Zitat