@@ -272,7 +272,9 @@ ULARGE_INTEGER = record
272
272
Function GetDataHere (CONST pformatetc : FormatETC; Out medium : STGMEDIUM):HRESULT; STDCALL;
273
273
Function QueryGetData (const pformatetc : FORMATETC):HRESULT; STDCALL;
274
274
Function GetCanonicalFormatTEtc (const pformatetcIn : FORMATETC;Out pformatetcOut : FORMATETC):HResult; STDCALl;
275
- Function SetData (Const pformatetc : FORMATETC;const medium:STGMEDIUM;FRelease : BOOL):HRESULT; StdCall;
275
+ Function SetData (Const pformatetc : FORMATETC;
276
+ { $IF FPC_FullVersion >= 30200} var { $ELSE} const { $IFEND} medium:STGMEDIUM;
277
+ FRelease : BOOL):HRESULT; StdCall;
276
278
Function EnumFormatEtc (dwDirection : DWord; OUT enumformatetcpara : IENUMFORMATETC):HRESULT; StdCall;
277
279
Function DAdvise (const formatetc : FORMATETC;advf :DWORD; CONST AdvSink : IAdviseSink;OUT dwConnection:DWORD):HRESULT;StdCall;
278
280
Function DUnadvise (dwconnection :DWord) :HRESULT;StdCall;
@@ -405,7 +407,9 @@ TVTDataObject = class(TInterfacedObject, IDataObject)
405
407
function GetData (const FormatEtcIn: TFormatEtc; out Medium: TStgMedium): HResult; virtual ; stdcall;
406
408
function GetDataHere (const FormatEtc: TFormatEtc; out Medium: TStgMedium): HResult; virtual ; stdcall;
407
409
function QueryGetData (const FormatEtc: TFormatEtc): HResult; virtual ; stdcall;
408
- function SetData (const FormatEtc: TFormatEtc;{ $ifdef VER2_0} var { $else} const { $endif} Medium: TStgMedium; DoRelease: BOOL): HResult; virtual ; stdcall;
410
+ function SetData (const FormatEtc: TFormatEtc;
411
+ { $IF FPC_FullVersion >= 30200} var { $ELSE} const { $IFEND} Medium: TStgMedium;
412
+ DoRelease: BOOL): HResult; virtual ; stdcall;
409
413
end ;
410
414
411
415
// TVTDragManager is a class to manage drag and drop in a Virtual Treeview.
@@ -1335,7 +1339,9 @@ function TVTDataObject.QueryGetData(const FormatEtc: TFormatEtc): HResult;
1335
1339
1336
1340
// ----------------------------------------------------------------------------------------------------------------------
1337
1341
1338
- function TVTDataObject.SetData (const FormatEtc: TFormatEtc;{ $ifdef VER2_0} var { $else} const { $endif} Medium: TStgMedium; DoRelease: BOOL): HResult;
1342
+ function TVTDataObject.SetData (const FormatEtc: TFormatEtc;
1343
+ { $IF FPC_FullVersion >= 30200} var { $ELSE} const { $IFEND} Medium: TStgMedium;
1344
+ DoRelease: BOOL): HResult;
1339
1345
1340
1346
// Allows dynamic adding to the IDataObject during its existance. Most noteably it is used to implement
1341
1347
// IDropSourceHelper and allows to set a special format for optimized moves during a shell transfer.
0 commit comments