Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/Clipboard.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | b98647bc0aef |
children |
comparison
equal
deleted
inserted
replaced
111:b6e9904989ed | 112:9f4c18c268b2 |
---|---|
555 for (int i = 0; i < allowedDataTypes.length; i++){ | 555 for (int i = 0; i < allowedDataTypes.length; i++){ |
556 formats[i] = allowedDataTypes[i].formatetc; | 556 formats[i] = allowedDataTypes[i].formatetc; |
557 } | 557 } |
558 // include the drop effect format to specify a copy operation | 558 // include the drop effect format to specify a copy operation |
559 FORMATETC* dropeffect = new FORMATETC(); | 559 FORMATETC* dropeffect = new FORMATETC(); |
560 dropeffect.cfFormat = CFSTR_PREFERREDDROPEFFECT; | 560 dropeffect.cfFormat = cast(ushort) CFSTR_PREFERREDDROPEFFECT; |
561 dropeffect.dwAspect = COM.DVASPECT_CONTENT; | 561 dropeffect.dwAspect = COM.DVASPECT_CONTENT; |
562 dropeffect.lindex = -1; | 562 dropeffect.lindex = -1; |
563 dropeffect.tymed = COM.TYMED_HGLOBAL; | 563 dropeffect.tymed = COM.TYMED_HGLOBAL; |
564 formats[formats.length -1] = dropeffect; | 564 formats[formats.length -1] = dropeffect; |
565 enumFORMATETC.setFormats(formats); | 565 enumFORMATETC.setFormats(formats); |