Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Drag&Drop aus neuer Outlook APP (pre) (https://www.delphipraxis.net/211789-drag-drop-aus-neuer-outlook-app-pre.html)

stalkingwolf 2. Nov 2022 15:32

Drag&Drop aus neuer Outlook APP (pre)
 
Jemand schon einmal versucht Drag&Drop aus dem neuen Outlook APP (pre) zu empfangen?
Aktuell nimmt nicht einmal des Windows Desktop diese entgegen.

Ziehe ich eine Email in meinem Programm auf ein TVirtualStringTree erhalte ich als TFormatArray die Nummern 49394,49839,49806,50067.
Ich habe diese versucht durch das übliche vorgehen von Outlook Drag&Drop durchlaufen zu lassen, aber das scheint etwas anderes zu sein.

OleCheck bringt als Fehler "Im Projekt ist eine Exception der Klasse EOleSysError mit der Meldung 'Ungültige FORMATETC-Struktur' aufgetreten."
Code:
procedure GetFileListFromObj(const DataObj: IDataObject; FileList: TStringList);
var
  FmtEtc: TFormatEtc;                  // specifies required data format
  Medium: TStgMedium;                  // storage medium containing file list
begin
    FmtEtc.cfFormat  := CF_HDROP;
    FmtEtc.ptd       := nil;
    FmtEtc.dwAspect  := DVASPECT_CONTENT;
    FmtEtc.lindex    := -1;
    FmtEtc.tymed     := TYMED_HGLOBAL;
    OleCheck(DataObj.GetData(FmtEtc, Medium));
    .
    .


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz