Question

en fait il y a une manière décrite dans http://social.expression.microsoft.com/Forums/es-ES/wpf/thread/6be8299a-9616-43f4-a72f-799da1193889

[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);   

je voudrais définir une zone mobile pour le curseur dans un contrôle personnalisé. en utilisant cette fonction native fait vacillante du curseur.

est-il une autre façon de définir la position de la souris qui ne provoque pas vacillante?

Était-ce utile?

La solution

Peut-être que vous pouvez bénéficier de la ClipCursor fonction .

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top