我需要实现提供给以下 StackOverflow 线程的答案: How to receive drag move and drag drop events using CefSharp winforms
我已经尝试实现代码,但我觉得提供的答案没有给我提供有关所提供代码的足够详细信息。
例如,为什么存在IOleDropTarget
和IOleDropTargetHelper
存在?
为什么在OleDragEnter
程序的示例用法中,它 RaiseEvent 到 Browsers DragEnter -- RaiseEvent DBDragEnter(eff, New Point(winPT.x, winPT.y))
,当我们在EnumChildProc_Browser
--Dim ret = NativeMethodsEx.RevokeDragDrop(hwndChild)
我的实现不起作用,因为我在尝试删除拖放时收到错误
您可以在我的 github 存储库中找到我的代码:https ://github.com/krptodr/StackOverflow.git
我希望能够看到如何使用上面引用的解决方案提供的代码覆盖 cefSharp winForms 的默认 DragHandler。