C#中调用API(RegisterDragDrop),很难
C#中如何调用HRESULT RegisterDragDrop(HWND hwnd, IDropTarget * pDropTarget),那位高手有例子,谢谢
------解决方案--------------------[DllImport( "ole32.dll ")]
static extern int RegisterDragDrop(IntPtr hwnd, IDropTarget pDropTarget);
调用例子没有...
------解决方案--------------------up
------解决方案--------------------up 1次
------解决方案--------------------mark
------解决方案--------------------不懂 友情UP
------解决方案--------------------高手,没用过
------解决方案--------------------up
------解决方案-------------------- [DllImport( "ole32.dll ")]
static extern int RegisterDragDrop(IntPtr hwnd, ref IDropTarget pDropTarget);
楼主试试
------解决方案--------------------声明好说,关键是你要找到IDropTarget类型...
------解决方案--------------------如果你可以用Reflector的话,这里有关于RegisterDragDrop的一个使用,你可以参考下.