鼠标拖放放大器;下降 [英] mouse drag & drop
问题描述
如何实现鼠标拖放放大器;下降过程
例如
SetCursorPos(32,32);
mouse_event((UINT)MouseEventFlags.RIGHTDOWN,0,0,0,0);
mouse_event((UINT)MouseEventFlags.RIGHTUP,0,0,0,0);
SetCursorPos(38,38);
mouse_event((UINT)MouseEventFlags.LEFTDOWN,0,0,0,0);
mouse_event((UINT)MouseEventFlags.LEFTUP,0,0,0,0);
how to implement mouse drag&drop process example SetCursorPos(32, 32); mouse_event((uint)MouseEventFlags.RIGHTDOWN,0,0 ,0,0); mouse_event((uint)MouseEventFlags.RIGHTUP,0,0 ,0,0); SetCursorPos(38, 38); mouse_event((uint)MouseEventFlags.LEFTDOWN,0,0 ,0,0); mouse_event((uint)MouseEventFlags.LEFTUP,0,0 ,0,0);
这是开放代码无论在屏幕
的左上如何实现拖放放大器;在这个特殊的代码或anyotherways下降?
this is code for open whatever in topleft of the screen how to implement the drag & drop in this particular code or anyotherways?
推荐答案
您将不得不考虑的拖放形式的事件(S) ,我认为你需要在表格藏汉启用的OnEnter,它已经有一段时间,因为我已经做了Windows窗体程序。
You would have to look into the Drag and Drop event(s) of the form, I think you need to enable OnEnter on the form aswell, its been a while since i've done windows forms programming.
认为这是所谓的dragenter,你可以阅读基于以下网页:
Think it is called DragEnter, you can read more on the following pages:
的 http://vicky4147.wordpress.com/2007/02/04/a-simple-drag-drop-in-winforms/
除此之外,我会考虑 uzbones 答案
Other than that i'd look into uzbones answer
这篇关于鼠标拖放放大器;下降的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!