Changeset 103 for trunk/Packages/Common


Ignore:
Timestamp:
Sep 23, 2016, 10:59:16 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Build under Linux.
  • Modified: Improved deb package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UListViewSort.pas

    r100 r103  
    99uses
    1010  {$IFDEF Windows}Windows, CommCtrl, {$ENDIF}Classes, Graphics, ComCtrls, SysUtils,
    11   Controls, DateUtils, Dialogs, SpecializedList, Forms, Grids, StdCtrls, ExtCtrls;
     11  Controls, DateUtils, Dialogs, SpecializedList, Forms, Grids, StdCtrls, ExtCtrls,
     12  LclIntf, LMessages, LclType, LResources;
    1213
    1314type
     
    4748    procedure SetColumn(const Value: Integer);
    4849    procedure SetOrder(const Value: TSortOrder);
     50    {$IFDEF WINDOWS}
    4951    procedure NewListViewWindowProc(var AMsg: TMessage);
     52    {$ENDIF}
    5053  public
    5154    List: TListObject;
     
    180183{ TListViewSort }
    181184
     185{$IFDEF WINDOWS}
    182186procedure TListViewSort.NewListViewWindowProc(var AMsg: TMessage);
    183187var
    184188  vColWidth: Integer;
    185   vMsgNotify: TWMNotify absolute AMsg;
     189  vMsgNotify: TLMNotify absolute AMsg;
    186190  Code: Integer;
    187191begin
     
    213217  end;
    214218end;
     219{$ENDIF}
    215220
    216221procedure TListViewSort.DoColumnBeginResize(const AColIndex: Integer);
     
    261266  FListView.OnClick := ListViewClick;
    262267  FOldListViewWindowProc := FListView.WindowProc;
     268  {$IFDEF WINDOWS}
    263269  FListView.WindowProc := NewListViewWindowProc;
     270  {$ENDIF}
    264271end;
    265272
Note: See TracChangeset for help on using the changeset viewer.