문제

실제로 설명 된 방법이 있습니다 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);   

커스텀 컨트롤에서 커서를위한 움직일 수있는 영역을 정의하고 싶습니다. 이 기본 기능을 사용하면 커서가 깜박입니다.

마우스 위치를 설정하는 또 다른 방법이 있습니까?

도움이 되었습니까?

해결책

어쩌면 당신은 관리되지 않은 사람들로부터 혜택을받을 수 있습니다 ClipCursor 기능.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top