WPF

2009-12-09 5 views
1

에서 마우스 위치를 설정하는 방법 실제로 내가 사용자 지정 컨트롤에 커서의 이동 영역을 정의하고 싶습니다 http://social.expression.microsoft.com/Forums/es-ES/wpf/thread/6be8299a-9616-43f4-a72f-799da1193889WPF

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

에 기술 된 방법이있다. 이 원시 함수를 사용하면 커서가 깜박입니다.

깜박임이 발생하지 않는 마우스 위치를 설정하는 다른 방법이 있습니까?

답변