-
Notifications
You must be signed in to change notification settings - Fork 4
/
ListItem.inc
322 lines (274 loc) · 10.1 KB
/
ListItem.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
//----------------------------------------
// ´úÂëÓÉGenlibVclš¤žß×ÔśŻÉúłÉĄŁ
// Copyright ? ying32. All Rights Reserved.
//
//----------------------------------------
function ListItem_Create(AOwner: TListItems): TListItem; cdecl;
begin
Result := TListItem.Create(AOwner);
end;
procedure ListItem_Free(AObj: TListItem); cdecl;
begin
AObj.Free;
end;
procedure ListItem_Assign(AObj: TListItem; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
//procedure ListItem_CancelEdit(AObj: TListItem); cdecl;
//begin
// AObj.CancelEdit;
//end;
procedure ListItem_Delete(AObj: TListItem); cdecl;
begin
AObj.Delete;
end;
function ListItem_EditCaption(AObj: TListItem): LongBool; cdecl;
begin
Result := AObj.EditCaption;
end;
procedure ListItem_MakeVisible(AObj: TListItem; PartialOK: LongBool); cdecl;
begin
AObj.MakeVisible(PartialOK);
end;
//procedure ListItem_Update(AObj: TListItem); cdecl;
//begin
// AObj.Update;
//end;
//function ListItem_WorkArea(AObj: TListItem): Integer; cdecl;
//begin
// Result := AObj.WorkArea;
//end;
function ListItem_GetNamePath(AObj: TListItem): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
function ListItem_ClassName(AObj: TListItem): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function ListItem_Equals(AObj: TListItem; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function ListItem_GetHashCode(AObj: TListItem): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function ListItem_ToString(AObj: TListItem): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function ListItem_GetCaption(AObj: TListItem): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Caption);
end;
procedure ListItem_SetCaption(AObj: TListItem; AValue: PWideChar); cdecl;
begin
AObj.Caption := AValue;
end;
function ListItem_GetChecked(AObj: TListItem): LongBool; cdecl;
begin
Result := AObj.Checked;
end;
procedure ListItem_SetChecked(AObj: TListItem; AValue: LongBool); cdecl;
begin
AObj.Checked := AValue;
end;
function ListItem_GetCut(AObj: TListItem): LongBool; cdecl;
begin
Result := AObj.Cut;
end;
procedure ListItem_SetCut(AObj: TListItem; AValue: LongBool); cdecl;
begin
AObj.Cut := AValue;
end;
function ListItem_GetData(AObj: TListItem): Pointer; cdecl;
begin
Result := AObj.Data;
end;
procedure ListItem_SetData(AObj: TListItem; AValue: Pointer); cdecl;
begin
AObj.Data := AValue;
end;
//function ListItem_GetDeleting(AObj: TListItem): LongBool; cdecl;
//begin
// Result := AObj.Deleting;
//end;
function ListItem_GetDropTarget(AObj: TListItem): LongBool; cdecl;
begin
Result := AObj.DropTarget;
end;
procedure ListItem_SetDropTarget(AObj: TListItem; AValue: LongBool); cdecl;
begin
AObj.DropTarget := AValue;
end;
function ListItem_GetFocused(AObj: TListItem): LongBool; cdecl;
begin
Result := AObj.Focused;
end;
procedure ListItem_SetFocused(AObj: TListItem; AValue: LongBool); cdecl;
begin
AObj.Focused := AValue;
end;
//function ListItem_GetGroupID(AObj: TListItem): Integer; cdecl;
//begin
// Result := AObj.GroupID;
//end;
//
//procedure ListItem_SetGroupID(AObj: TListItem; AValue: Integer); cdecl;
//begin
// AObj.GroupID := AValue;
//end;
//
//function ListItem_GetHandle(AObj: TListItem): HWND; cdecl;
//begin
// Result := AObj.Handle;
//end;
//
//function ListItem_GetImageIndex(AObj: TListItem): TImageIndex; cdecl;
//begin
// Result := AObj.ImageIndex;
//end;
//
//procedure ListItem_SetImageIndex(AObj: TListItem; AValue: TImageIndex); cdecl;
//begin
// AObj.ImageIndex := AValue;
//end;
//
//function ListItem_GetIndent(AObj: TListItem): Integer; cdecl;
//begin
// Result := AObj.Indent;
//end;
//
//procedure ListItem_SetIndent(AObj: TListItem; AValue: Integer); cdecl;
//begin
// AObj.Indent := AValue;
//end;
function ListItem_GetIndex(AObj: TListItem): Integer; cdecl;
begin
Result := AObj.Index;
end;
function ListItem_GetLeft(AObj: TListItem): Integer; cdecl;
begin
Result := AObj.Left;
end;
procedure ListItem_SetLeft(AObj: TListItem; AValue: Integer); cdecl;
begin
AObj.Left := AValue;
end;
function ListItem_GetOwner(AObj: TListItem): TListItems; cdecl;
begin
Result := AObj.Owner;
end;
//function ListItem_GetOverlayIndex(AObj: TListItem): TImageIndex; cdecl;
//begin
// Result := AObj.OverlayIndex;
//end;
//
//procedure ListItem_SetOverlayIndex(AObj: TListItem; AValue: TImageIndex); cdecl;
//begin
// AObj.OverlayIndex := AValue;
//end;
procedure ListItem_GetPosition(AObj: TListItem; var Result: TPoint); cdecl;
begin
Result := AObj.Position;
end;
procedure ListItem_SetPosition(AObj: TListItem; var AValue: TPoint); cdecl;
begin
AObj.Position := AValue;
end;
function ListItem_GetSelected(AObj: TListItem): LongBool; cdecl;
begin
Result := AObj.Selected;
end;
procedure ListItem_SetSelected(AObj: TListItem; AValue: LongBool); cdecl;
begin
AObj.Selected := AValue;
end;
//function ListItem_GetStateIndex(AObj: TListItem): TImageIndex; cdecl;
//begin
// Result := AObj.StateIndex;
//end;
//
//procedure ListItem_SetStateIndex(AObj: TListItem; AValue: TImageIndex); cdecl;
//begin
// AObj.StateIndex := AValue;
//end;
function ListItem_GetSubItems(AObj: TListItem): TStrings; cdecl;
begin
Result := AObj.SubItems;
end;
procedure ListItem_SetSubItems(AObj: TListItem; AValue: TStrings); cdecl;
begin
AObj.SubItems := AValue;
end;
function ListItem_GetTop(AObj: TListItem): Integer; cdecl;
begin
Result := AObj.Top;
end;
procedure ListItem_SetTop(AObj: TListItem; AValue: Integer); cdecl;
begin
AObj.Top := AValue;
end;
function ListItem_GetSubItemImages(AObj: TListItem; Index: Integer): Integer; cdecl;
begin
Result := AObj.SubItemImages[Index];
end;
procedure ListItem_SetSubItemImages(AObj: TListItem; Index: Integer; AValue: Integer); cdecl;
begin
AObj.SubItemImages[Index] := AValue;
end;
exports
ListItem_Create {$IFNDEF MSWINDOWS}name '_ListItem_Create'{$ENDIF},
ListItem_Free {$IFNDEF MSWINDOWS}name '_ListItem_Free'{$ENDIF},
ListItem_Assign {$IFNDEF MSWINDOWS}name '_ListItem_Assign'{$ENDIF},
//ListItem_CancelEdit {$IFNDEF MSWINDOWS}name '_ListItem_CancelEdit'{$ENDIF},
ListItem_Delete {$IFNDEF MSWINDOWS}name '_ListItem_Delete'{$ENDIF},
ListItem_EditCaption {$IFNDEF MSWINDOWS}name '_ListItem_EditCaption'{$ENDIF},
ListItem_MakeVisible {$IFNDEF MSWINDOWS}name '_ListItem_MakeVisible'{$ENDIF},
//ListItem_Update {$IFNDEF MSWINDOWS}name '_ListItem_Update'{$ENDIF},
//ListItem_WorkArea {$IFNDEF MSWINDOWS}name '_ListItem_WorkArea'{$ENDIF},
ListItem_GetNamePath {$IFNDEF MSWINDOWS}name '_ListItem_GetNamePath'{$ENDIF},
ListItem_ClassName {$IFNDEF MSWINDOWS}name '_ListItem_ClassName'{$ENDIF},
ListItem_Equals {$IFNDEF MSWINDOWS}name '_ListItem_Equals'{$ENDIF},
ListItem_GetHashCode {$IFNDEF MSWINDOWS}name '_ListItem_GetHashCode'{$ENDIF},
ListItem_ToString {$IFNDEF MSWINDOWS}name '_ListItem_ToString'{$ENDIF},
ListItem_GetCaption {$IFNDEF MSWINDOWS}name '_ListItem_GetCaption'{$ENDIF},
ListItem_SetCaption {$IFNDEF MSWINDOWS}name '_ListItem_SetCaption'{$ENDIF},
ListItem_GetChecked {$IFNDEF MSWINDOWS}name '_ListItem_GetChecked'{$ENDIF},
ListItem_SetChecked {$IFNDEF MSWINDOWS}name '_ListItem_SetChecked'{$ENDIF},
ListItem_GetCut {$IFNDEF MSWINDOWS}name '_ListItem_GetCut'{$ENDIF},
ListItem_SetCut {$IFNDEF MSWINDOWS}name '_ListItem_SetCut'{$ENDIF},
ListItem_GetData {$IFNDEF MSWINDOWS}name '_ListItem_GetData'{$ENDIF},
ListItem_SetData {$IFNDEF MSWINDOWS}name '_ListItem_SetData'{$ENDIF},
//ListItem_GetDeleting {$IFNDEF MSWINDOWS}name '_ListItem_GetDeleting'{$ENDIF},
ListItem_GetDropTarget {$IFNDEF MSWINDOWS}name '_ListItem_GetDropTarget'{$ENDIF},
ListItem_SetDropTarget {$IFNDEF MSWINDOWS}name '_ListItem_SetDropTarget'{$ENDIF},
ListItem_GetFocused {$IFNDEF MSWINDOWS}name '_ListItem_GetFocused'{$ENDIF},
ListItem_SetFocused {$IFNDEF MSWINDOWS}name '_ListItem_SetFocused'{$ENDIF},
//ListItem_GetGroupID {$IFNDEF MSWINDOWS}name '_ListItem_GetGroupID'{$ENDIF},
//ListItem_SetGroupID {$IFNDEF MSWINDOWS}name '_ListItem_SetGroupID'{$ENDIF},
//ListItem_GetHandle {$IFNDEF MSWINDOWS}name '_ListItem_GetHandle'{$ENDIF},
//ListItem_GetImageIndex {$IFNDEF MSWINDOWS}name '_ListItem_GetImageIndex'{$ENDIF},
//ListItem_SetImageIndex {$IFNDEF MSWINDOWS}name '_ListItem_SetImageIndex'{$ENDIF},
//ListItem_GetIndent {$IFNDEF MSWINDOWS}name '_ListItem_GetIndent'{$ENDIF},
//ListItem_SetIndent {$IFNDEF MSWINDOWS}name '_ListItem_SetIndent'{$ENDIF},
ListItem_GetIndex {$IFNDEF MSWINDOWS}name '_ListItem_GetIndex'{$ENDIF},
ListItem_GetLeft {$IFNDEF MSWINDOWS}name '_ListItem_GetLeft'{$ENDIF},
ListItem_SetLeft {$IFNDEF MSWINDOWS}name '_ListItem_SetLeft'{$ENDIF},
ListItem_GetOwner {$IFNDEF MSWINDOWS}name '_ListItem_GetOwner'{$ENDIF},
//ListItem_GetOverlayIndex {$IFNDEF MSWINDOWS}name '_ListItem_GetOverlayIndex'{$ENDIF},
//ListItem_SetOverlayIndex {$IFNDEF MSWINDOWS}name '_ListItem_SetOverlayIndex'{$ENDIF},
ListItem_GetPosition {$IFNDEF MSWINDOWS}name '_ListItem_GetPosition'{$ENDIF},
ListItem_SetPosition {$IFNDEF MSWINDOWS}name '_ListItem_SetPosition'{$ENDIF},
ListItem_GetSelected {$IFNDEF MSWINDOWS}name '_ListItem_GetSelected'{$ENDIF},
ListItem_SetSelected {$IFNDEF MSWINDOWS}name '_ListItem_SetSelected'{$ENDIF},
//ListItem_GetStateIndex {$IFNDEF MSWINDOWS}name '_ListItem_GetStateIndex'{$ENDIF},
//ListItem_SetStateIndex {$IFNDEF MSWINDOWS}name '_ListItem_SetStateIndex'{$ENDIF},
ListItem_GetSubItems {$IFNDEF MSWINDOWS}name '_ListItem_GetSubItems'{$ENDIF},
ListItem_SetSubItems {$IFNDEF MSWINDOWS}name '_ListItem_SetSubItems'{$ENDIF},
ListItem_GetTop {$IFNDEF MSWINDOWS}name '_ListItem_GetTop'{$ENDIF},
ListItem_SetTop {$IFNDEF MSWINDOWS}name '_ListItem_SetTop'{$ENDIF},
ListItem_GetSubItemImages {$IFNDEF MSWINDOWS}name '_ListItem_GetSubItemImages'{$ENDIF},
ListItem_SetSubItemImages {$IFNDEF MSWINDOWS}name '_ListItem_SetSubItemImages'{$ENDIF};