2009-12-09 47 views
1

鼠標位置實際上存在http://social.expression.microsoft.com/Forums/es-ES/wpf/thread/6be8299a-9616-43f4-a72f-799da1193889如何設置在WPF

[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetCursorPos")] 
[return: System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)] 
public static extern bool SetCursorPos(int X, int Y); 

描述的方式我想在自定義控制,以限定可動區域的光標。使用此原生函數的 會使光標閃爍。

是否有另一種方法來設置鼠標位置不會導致閃爍?

回答