Drag und Drop zwischen Editcontrol / Adobe
-
Hi alle,
in meiner Anwendung (Dialog) möchte ich gerne Text aus dem Acrobat Reader
per Drag übernehmen. Acrobat Reader unterstützt dies ja und z.B. nach
Word ist es auch kein Problem.Nur in mein Editcontrol habe ich keine Ahnung, wie ich es reinbekommen soll.
Ein Beispiel habe ich mir irgendwann mal für das Drop-Ereignis im Zusammenhang
mit Dateien notiert (glaube sogar hier aus dem Forum):void CTestDlg::OnDropFiles(HDROP hDropInfo) { UINT i = 0; UINT nFiles = ::DragQueryFile(hDropInfo, (UINT) -1, NULL, 0); for (i = 0; i < nFiles; i++) { TCHAR szFileName[_MAX_PATH]; ::DragQueryFile(hDropInfo, i, szFileName, _MAX_PATH); mystr.SetString(szFileName,NULL); MessageBox(szFileName,"Inhalt"); }