-
Notifications
You must be signed in to change notification settings - Fork 4
/
ListView.inc
1345 lines (1159 loc) · 43.3 KB
/
ListView.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//----------------------------------------
// ´úÂëÓÉGenlibVcl¹¤¾ß×Ô¶¯Éú³É¡£
// Copyright ? ying32. All Rights Reserved.
//
//----------------------------------------
function ListView_Create(AOwner: TComponent): TListView; cdecl;
begin
Result := TListView.Create(AOwner);
end;
procedure ListView_Free(AObj: TListView); cdecl;
begin
AObj.Free;
end;
procedure ListView_AddItem(AObj: TListView; Item: PWideChar; AObject: TObject); cdecl;
begin
AObj.AddItem(Item, AObject);
end;
function ListView_AlphaSort(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.AlphaSort;
end;
procedure ListView_Clear(AObj: TListView); cdecl;
begin
AObj.Clear;
end;
procedure ListView_ClearSelection(AObj: TListView); cdecl;
begin
AObj.ClearSelection;
end;
procedure ListView_DeleteSelected(AObj: TListView); cdecl;
begin
AObj.Selected.Delete;
//AObj.DeleteSelected;
end;
//function ListView_GetSearchString(AObj: TListView): PWideChar; cdecl;
//begin
// Result := PWideChar(AObj.GetSearchString);
//end;
function ListView_IsEditing(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.IsEditing;
end;
procedure ListView_SelectAll(AObj: TListView); cdecl;
begin
AObj.SelectAll;
end;
//procedure ListView_Scroll(AObj: TListView; DX: Integer; DY: Integer); cdecl;
//begin
// AObj.Scroll(DX, DY);
//end;
function ListView_CanFocus(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.CanFocus;
end;
procedure ListView_FlipChildren(AObj: TListView; AllLevels: LongBool); cdecl;
begin
AObj.FlipChildren(AllLevels);
end;
function ListView_Focused(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.Focused;
end;
function ListView_HandleAllocated(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.HandleAllocated;
end;
procedure ListView_Invalidate(AObj: TListView); cdecl;
begin
AObj.Invalidate;
end;
procedure ListView_Realign(AObj: TListView); cdecl;
begin
AObj.Realign;
end;
procedure ListView_Repaint(AObj: TListView); cdecl;
begin
AObj.Repaint;
end;
procedure ListView_ScaleBy(AObj: TListView; M: Integer; D: Integer); cdecl;
begin
AObj.ScaleBy(M, D);
end;
procedure ListView_SetBounds(AObj: TListView; ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); cdecl;
begin
AObj.SetBounds(ALeft, ATop, AWidth, AHeight);
end;
procedure ListView_SetFocus(AObj: TListView); cdecl;
begin
AObj.SetFocus;
end;
procedure ListView_Update(AObj: TListView); cdecl;
begin
AObj.Update;
end;
procedure ListView_BringToFront(AObj: TListView); cdecl;
begin
AObj.BringToFront;
end;
function ListView_HasParent(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.HasParent;
end;
procedure ListView_Hide(AObj: TListView); cdecl;
begin
AObj.Hide;
end;
function ListView_Perform(AObj: TListView; Msg: Cardinal; WParam: NativeUInt; LParam: NativeInt): NativeInt; cdecl;
begin
Result := AObj.Perform(Msg, WParam, LParam);
end;
procedure ListView_Refresh(AObj: TListView); cdecl;
begin
AObj.Refresh;
end;
procedure ListView_SendToBack(AObj: TListView); cdecl;
begin
AObj.SendToBack;
end;
procedure ListView_Show(AObj: TListView); cdecl;
begin
AObj.Show;
end;
function ListView_GetTextBuf(AObj: TListView; Buffer: PWideChar; BufSize: Integer): Integer; cdecl;
begin
Result := AObj.GetTextBuf(PChar(Buffer), BufSize);
end;
function ListView_FindComponent(AObj: TListView; AName: PWideChar): TComponent; cdecl;
begin
Result := AObj.FindComponent(AName);
end;
function ListView_GetNamePath(AObj: TListView): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
procedure ListView_Assign(AObj: TListView; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function ListView_ClassName(AObj: TListView): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function ListView_Equals(AObj: TListView; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function ListView_GetHashCode(AObj: TListView): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function ListView_ToString(AObj: TListView): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function ListView_GetAction(AObj: TListView): TBasicAction; cdecl;
begin
Result := AObj.Action;
end;
procedure ListView_SetAction(AObj: TListView; AValue: TBasicAction); cdecl;
begin
AObj.Action := AValue;
end;
function ListView_GetAlign(AObj: TListView): TAlign; cdecl;
begin
Result := AObj.Align;
end;
procedure ListView_SetAlign(AObj: TListView; AValue: TAlign); cdecl;
begin
AObj.Align := AValue;
end;
function ListView_GetAllocBy(AObj: TListView): Integer; cdecl;
begin
Result := AObj.AllocBy;
end;
procedure ListView_SetAllocBy(AObj: TListView; AValue: Integer); cdecl;
begin
AObj.AllocBy := AValue;
end;
function ListView_GetAnchors(AObj: TListView): TAnchors; cdecl;
begin
Result := AObj.Anchors;
end;
procedure ListView_SetAnchors(AObj: TListView; AValue: TAnchors); cdecl;
begin
AObj.Anchors := AValue;
end;
//function ListView_GetBevelEdges(AObj: TListView): TBevelEdges; cdecl;
//begin
// Result := AObj.BevelEdges;
//end;
//
//procedure ListView_SetBevelEdges(AObj: TListView; AValue: TBevelEdges); cdecl;
//begin
// AObj.BevelEdges := AValue;
//end;
//
//function ListView_GetBevelInner(AObj: TListView): TBevelCut; cdecl;
//begin
// Result := AObj.BevelInner;
//end;
//
//procedure ListView_SetBevelInner(AObj: TListView; AValue: TBevelCut); cdecl;
//begin
// AObj.BevelInner := AValue;
//end;
//
//function ListView_GetBevelOuter(AObj: TListView): TBevelCut; cdecl;
//begin
// Result := AObj.BevelOuter;
//end;
//
//procedure ListView_SetBevelOuter(AObj: TListView; AValue: TBevelCut); cdecl;
//begin
// AObj.BevelOuter := AValue;
//end;
//
//function ListView_GetBevelKind(AObj: TListView): TBevelKind; cdecl;
//begin
// Result := AObj.BevelKind;
//end;
//
//procedure ListView_SetBevelKind(AObj: TListView; AValue: TBevelKind); cdecl;
//begin
// AObj.BevelKind := AValue;
//end;
function ListView_GetBiDiMode(AObj: TListView): TBiDiMode; cdecl;
begin
Result := AObj.BiDiMode;
end;
procedure ListView_SetBiDiMode(AObj: TListView; AValue: TBiDiMode); cdecl;
begin
AObj.BiDiMode := AValue;
end;
function ListView_GetBorderStyle(AObj: TListView): TBorderStyle; cdecl;
begin
Result := AObj.BorderStyle;
end;
procedure ListView_SetBorderStyle(AObj: TListView; AValue: TBorderStyle); cdecl;
begin
AObj.BorderStyle := AValue;
end;
function ListView_GetBorderWidth(AObj: TListView): TBorderWidth; cdecl;
begin
Result := AObj.BorderWidth;
end;
procedure ListView_SetBorderWidth(AObj: TListView; AValue: TBorderWidth); cdecl;
begin
AObj.BorderWidth := AValue;
end;
function ListView_GetCheckboxes(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.Checkboxes;
end;
procedure ListView_SetCheckboxes(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.Checkboxes := AValue;
end;
function ListView_GetColor(AObj: TListView): TColor; cdecl;
begin
Result := AObj.Color;
end;
procedure ListView_SetColor(AObj: TListView; AValue: TColor); cdecl;
begin
AObj.Color := AValue;
end;
function ListView_GetColumns(AObj: TListView): TListColumns; cdecl;
begin
Result := AObj.Columns;
end;
procedure ListView_SetColumns(AObj: TListView; AValue: TListColumns); cdecl;
begin
AObj.Columns := AValue;
end;
function ListView_GetColumnClick(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ColumnClick;
end;
procedure ListView_SetColumnClick(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ColumnClick := AValue;
end;
function ListView_GetDoubleBuffered(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.DoubleBuffered;
end;
procedure ListView_SetDoubleBuffered(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.DoubleBuffered := AValue;
end;
function ListView_GetEnabled(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.Enabled;
end;
procedure ListView_SetEnabled(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.Enabled := AValue;
end;
function ListView_GetFont(AObj: TListView): TFont; cdecl;
begin
Result := AObj.Font;
end;
procedure ListView_SetFont(AObj: TListView; AValue: TFont); cdecl;
begin
AObj.Font := AValue;
end;
function ListView_GetFlatScrollBars(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.FlatScrollBars;
end;
procedure ListView_SetFlatScrollBars(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.FlatScrollBars := AValue;
end;
function ListView_GetFullDrag(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.FullDrag;
end;
procedure ListView_SetFullDrag(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.FullDrag := AValue;
end;
function ListView_GetGridLines(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.GridLines;
end;
procedure ListView_SetGridLines(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.GridLines := AValue;
end;
//function ListView_GetGroups(AObj: TListView): TListGroups; cdecl;
//begin
// Result := AObj.Groups;
//end;
//
//procedure ListView_SetGroups(AObj: TListView; AValue: TListGroups); cdecl;
//begin
// AObj.Groups := AValue;
//end;
function ListView_GetHideSelection(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.HideSelection;
end;
procedure ListView_SetHideSelection(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.HideSelection := AValue;
end;
function ListView_GetHotTrack(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.HotTrack;
end;
procedure ListView_SetHotTrack(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.HotTrack := AValue;
end;
//function ListView_GetHoverTime(AObj: TListView): Integer; cdecl;
//begin
// Result := AObj.HoverTime;
//end;
//
//procedure ListView_SetHoverTime(AObj: TListView; AValue: Integer); cdecl;
//begin
// AObj.HoverTime := AValue;
//end;
function ListView_GetIconOptions(AObj: TListView): TIconOptions; cdecl;
begin
Result := AObj.IconOptions;
end;
procedure ListView_SetIconOptions(AObj: TListView; AValue: TIconOptions); cdecl;
begin
AObj.IconOptions := AValue;
end;
function ListView_GetItems(AObj: TListView): TListItems; cdecl;
begin
Result := AObj.Items;
end;
procedure ListView_SetItems(AObj: TListView; AValue: TListItems); cdecl;
begin
AObj.Items := AValue;
end;
//function ListView_GetLargeImages(AObj: TListView): TCustomImageList; cdecl;
//begin
// Result := AObj.LargeImages;
//end;
//
//procedure ListView_SetLargeImages(AObj: TListView; AValue: TCustomImageList); cdecl;
//begin
// AObj.LargeImages := AValue;
//end;
function ListView_GetMultiSelect(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.MultiSelect;
end;
procedure ListView_SetMultiSelect(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.MultiSelect := AValue;
end;
//function ListView_GetStyleElements(AObj: TListView): TStyleElements; cdecl;
//begin
// Result := AObj.StyleElements;
//end;
//
//procedure ListView_SetStyleElements(AObj: TListView; AValue: TStyleElements); cdecl;
//begin
// AObj.StyleElements := AValue;
//end;
//
//function ListView_GetGroupHeaderImages(AObj: TListView): TCustomImageList; cdecl;
//begin
// Result := AObj.GroupHeaderImages;
//end;
//
//procedure ListView_SetGroupHeaderImages(AObj: TListView; AValue: TCustomImageList); cdecl;
//begin
// AObj.GroupHeaderImages := AValue;
//end;
//
//function ListView_GetGroupView(AObj: TListView): LongBool; cdecl;
//begin
// Result := AObj.GroupView;
//end;
//
//procedure ListView_SetGroupView(AObj: TListView; AValue: LongBool); cdecl;
//begin
// AObj.GroupView := AValue;
//end;
function ListView_GetReadOnly(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ReadOnly;
end;
procedure ListView_SetReadOnly(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ReadOnly := AValue;
end;
function ListView_GetRowSelect(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.RowSelect;
end;
procedure ListView_SetRowSelect(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.RowSelect := AValue;
end;
function ListView_GetParentColor(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ParentColor;
end;
procedure ListView_SetParentColor(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ParentColor := AValue;
end;
//function ListView_GetParentDoubleBuffered(AObj: TListView): LongBool; cdecl;
//begin
// Result := AObj.ParentDoubleBuffered;
//end;
//
//procedure ListView_SetParentDoubleBuffered(AObj: TListView; AValue: LongBool); cdecl;
//begin
// AObj.ParentDoubleBuffered := AValue;
//end;
function ListView_GetParentFont(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ParentFont;
end;
procedure ListView_SetParentFont(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ParentFont := AValue;
end;
function ListView_GetParentShowHint(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ParentShowHint;
end;
procedure ListView_SetParentShowHint(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ParentShowHint := AValue;
end;
function ListView_GetPopupMenu(AObj: TListView): TPopupMenu; cdecl;
begin
Result := AObj.PopupMenu;
end;
procedure ListView_SetPopupMenu(AObj: TListView; AValue: TPopupMenu); cdecl;
begin
AObj.PopupMenu := AValue;
end;
function ListView_GetShowColumnHeaders(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ShowColumnHeaders;
end;
procedure ListView_SetShowColumnHeaders(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ShowColumnHeaders := AValue;
end;
//function ListView_GetShowWorkAreas(AObj: TListView): LongBool; cdecl;
//begin
// Result := AObj.ShowWorkAreas;
//end;
//
//procedure ListView_SetShowWorkAreas(AObj: TListView; AValue: LongBool); cdecl;
//begin
// AObj.ShowWorkAreas := AValue;
//end;
function ListView_GetShowHint(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.ShowHint;
end;
procedure ListView_SetShowHint(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.ShowHint := AValue;
end;
//function ListView_GetSmallImages(AObj: TListView): TCustomImageList; cdecl;
//begin
// Result := AObj.SmallImages;
//end;
//
//procedure ListView_SetSmallImages(AObj: TListView; AValue: TCustomImageList); cdecl;
//begin
// AObj.SmallImages := AValue;
//end;
function ListView_GetSortType(AObj: TListView): TSortType; cdecl;
begin
Result := AObj.SortType;
end;
procedure ListView_SetSortType(AObj: TListView; AValue: TSortType); cdecl;
begin
AObj.SortType := AValue;
end;
//function ListView_GetStateImages(AObj: TListView): TCustomImageList; cdecl;
//begin
// Result := AObj.StateImages;
//end;
//
//procedure ListView_SetStateImages(AObj: TListView; AValue: TCustomImageList); cdecl;
//begin
// AObj.StateImages := AValue;
//end;
function ListView_GetTabOrder(AObj: TListView): TTabOrder; cdecl;
begin
Result := AObj.TabOrder;
end;
procedure ListView_SetTabOrder(AObj: TListView; AValue: TTabOrder); cdecl;
begin
AObj.TabOrder := AValue;
end;
function ListView_GetTabStop(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.TabStop;
end;
procedure ListView_SetTabStop(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.TabStop := AValue;
end;
function ListView_GetViewStyle(AObj: TListView): TViewStyle; cdecl;
begin
Result := AObj.ViewStyle;
end;
procedure ListView_SetViewStyle(AObj: TListView; AValue: TViewStyle); cdecl;
begin
AObj.ViewStyle := AValue;
end;
function ListView_GetVisible(AObj: TListView): LongBool; cdecl;
begin
Result := AObj.Visible;
end;
procedure ListView_SetVisible(AObj: TListView; AValue: LongBool); cdecl;
begin
AObj.Visible := AValue;
end;
procedure ListView_SetOnChange(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnChange := nil;
TEventClass.Remove(AObj, geListViewChange);
Exit;
end;
AObj.OnChange := TEventClass.ListViewOnChange;
TEventClass.Add(AObj, geListViewChange, AEventId);
end;
procedure ListView_SetOnClick(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnClick := nil;
TEventClass.Remove(AObj, geClick);
Exit;
end;
AObj.OnClick := TEventClass.OnClick;
TEventClass.Add(AObj, geClick, AEventId);
end;
procedure ListView_SetOnDblClick(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnDblClick := nil;
TEventClass.Remove(AObj, geDblClick);
Exit;
end;
AObj.OnDblClick := TEventClass.OnDblClick;
TEventClass.Add(AObj, geDblClick, AEventId);
end;
procedure ListView_SetOnEnter(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnEnter := nil;
TEventClass.Remove(AObj, geEnter);
Exit;
end;
AObj.OnEnter := TEventClass.OnEnter;
TEventClass.Add(AObj, geEnter, AEventId);
end;
procedure ListView_SetOnExit(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnExit := nil;
TEventClass.Remove(AObj, geExit);
Exit;
end;
AObj.OnExit := TEventClass.OnExit;
TEventClass.Add(AObj, geExit, AEventId);
end;
procedure ListView_SetOnKeyDown(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnKeyDown := nil;
TEventClass.Remove(AObj, geKeyDown);
Exit;
end;
AObj.OnKeyDown := TEventClass.OnKeyDown;
TEventClass.Add(AObj, geKeyDown, AEventId);
end;
procedure ListView_SetOnKeyPress(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnKeyPress := nil;
TEventClass.Remove(AObj, geKeyPress);
Exit;
end;
AObj.OnKeyPress := TEventClass.OnKeyPress;
TEventClass.Add(AObj, geKeyPress, AEventId);
end;
procedure ListView_SetOnKeyUp(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnKeyUp := nil;
TEventClass.Remove(AObj, geKeyUp);
Exit;
end;
AObj.OnKeyUp := TEventClass.OnKeyUp;
TEventClass.Add(AObj, geKeyUp, AEventId);
end;
procedure ListView_SetOnMouseDown(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseDown := nil;
TEventClass.Remove(AObj, geMouseDown);
Exit;
end;
AObj.OnMouseDown := TEventClass.OnMouseDown;
TEventClass.Add(AObj, geMouseDown, AEventId);
end;
procedure ListView_SetOnMouseEnter(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseEnter := nil;
TEventClass.Remove(AObj, geMouseEnter);
Exit;
end;
AObj.OnMouseEnter := TEventClass.OnMouseEnter;
TEventClass.Add(AObj, geMouseEnter, AEventId);
end;
procedure ListView_SetOnMouseLeave(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseLeave := nil;
TEventClass.Remove(AObj, geMouseLeave);
Exit;
end;
AObj.OnMouseLeave := TEventClass.OnMouseLeave;
TEventClass.Add(AObj, geMouseLeave, AEventId);
end;
procedure ListView_SetOnMouseMove(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseMove := nil;
TEventClass.Remove(AObj, geMouseMove);
Exit;
end;
AObj.OnMouseMove := TEventClass.OnMouseMove;
TEventClass.Add(AObj, geMouseMove, AEventId);
end;
procedure ListView_SetOnMouseUp(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseUp := nil;
TEventClass.Remove(AObj, geMouseUp);
Exit;
end;
AObj.OnMouseUp := TEventClass.OnMouseUp;
TEventClass.Add(AObj, geMouseUp, AEventId);
end;
procedure ListView_SetOnResize(AObj: TListView; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnResize := nil;
TEventClass.Remove(AObj, geResize);
Exit;
end;
AObj.OnResize := TEventClass.OnResize;
TEventClass.Add(AObj, geResize, AEventId);
end;
function ListView_GetCanvas(AObj: TListView): TCanvas; cdecl;
begin
Result := AObj.Canvas;
end;
function ListView_GetDropTarget(AObj: TListView): TListItem; cdecl;
begin
Result := AObj.DropTarget;
end;
procedure ListView_SetDropTarget(AObj: TListView; AValue: TListItem); cdecl;
begin
AObj.DropTarget := AValue;
end;
function ListView_GetItemFocused(AObj: TListView): TListItem; cdecl;
begin
Result := AObj.ItemFocused;
end;
procedure ListView_SetItemFocused(AObj: TListView; AValue: TListItem); cdecl;
begin
AObj.ItemFocused := AValue;
end;
function ListView_GetSelCount(AObj: TListView): Integer; cdecl;
begin
Result := AObj.SelCount;
end;
function ListView_GetSelected(AObj: TListView): TListItem; cdecl;
begin
Result := AObj.Selected;
end;
procedure ListView_SetSelected(AObj: TListView; AValue: TListItem); cdecl;
begin
AObj.Selected := AValue;
end;
function ListView_GetTopItem(AObj: TListView): TListItem; cdecl;
begin
Result := AObj.TopItem;
end;
function ListView_GetVisibleRowCount(AObj: TListView): Integer; cdecl;
begin
Result := AObj.VisibleRowCount;
end;
function ListView_GetItemIndex(AObj: TListView): Integer; cdecl;
begin
Result := AObj.ItemIndex;
end;
procedure ListView_SetItemIndex(AObj: TListView; AValue: Integer); cdecl;
begin
AObj.ItemIndex := AValue;
end;
function ListView_GetBrush(AObj: TListView): TBrush; cdecl;
begin
Result := AObj.Brush;
end;
function ListView_GetControlCount(AObj: TListView): Integer; cdecl;
begin
Result := AObj.ControlCount;
end;
function ListView_GetHandle(AObj: TListView): HWND; cdecl;
begin
Result := AObj.Handle;
end;
function ListView_GetParentWindow(AObj: TListView): HWND; cdecl;
begin
Result := AObj.ParentWindow;
end;
procedure ListView_SetParentWindow(AObj: TListView; AValue: HWND); cdecl;
begin
AObj.ParentWindow := AValue;
end;
procedure ListView_GetBoundsRect(AObj: TListView; var Result: TRect); cdecl;
begin
Result := AObj.BoundsRect;
end;
procedure ListView_SetBoundsRect(AObj: TListView; var AValue: TRect); cdecl;
begin
AObj.BoundsRect := AValue;
end;
function ListView_GetClientHeight(AObj: TListView): Integer; cdecl;
begin
Result := AObj.ClientHeight;
end;
procedure ListView_SetClientHeight(AObj: TListView; AValue: Integer); cdecl;
begin
AObj.ClientHeight := AValue;
end;
procedure ListView_GetClientRect(AObj: TListView; var Result: TRect); cdecl;
begin
Result := AObj.ClientRect;
end;
function ListView_GetClientWidth(AObj: TListView): Integer; cdecl;
begin
Result := AObj.ClientWidth;
end;
procedure ListView_SetClientWidth(AObj: TListView; AValue: Integer); cdecl;
begin
AObj.ClientWidth := AValue;
end;
//function ListView_GetExplicitLeft(AObj: TListView): Integer; cdecl;
//begin
// Result := AObj.ExplicitLeft;
//end;
//
//function ListView_GetExplicitTop(AObj: TListView): Integer; cdecl;
//begin
// Result := AObj.ExplicitTop;
//end;
//
//function ListView_GetExplicitWidth(AObj: TListView): Integer; cdecl;
//begin
// Result := AObj.ExplicitWidth;
//end;
//
//function ListView_GetExplicitHeight(AObj: TListView): Integer; cdecl;
//begin
// Result := AObj.ExplicitHeight;
//end;
function ListView_GetParent(AObj: TListView): TWinControl; cdecl;
begin
Result := AObj.Parent;
end;
procedure ListView_SetParent(AObj: TListView; AValue: TWinControl); cdecl;
begin
AObj.Parent := AValue;
end;