C# 클래스 WPF.JoshSmith.Controls.Utilities.MouseUtilities

Provides access to the mouse location by calling unmanaged code.
This class was written by Dan Crevier (Microsoft). http://blogs.msdn.com/llobo/archive/2006/09/06/Scrolling-Scrollviewer-on-Mouse-Drag-at-the-boundaries.aspx
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 메소드들

메소드 설명
GetMousePosition ( Visual relativeTo ) : Point

Returns the mouse cursor location. This method is necessary during a drag-drop operation because the WPF mechanisms for retrieving the cursor coordinates are unreliable.

비공개 메소드들

메소드 설명
GetCursorPos ( Win32Point &pt ) : bool
ScreenToClient ( IntPtr hwnd, Win32Point &pt ) : bool

메소드 상세

GetMousePosition() 공개 정적인 메소드

Returns the mouse cursor location. This method is necessary during a drag-drop operation because the WPF mechanisms for retrieving the cursor coordinates are unreliable.
public static GetMousePosition ( Visual relativeTo ) : Point
relativeTo Visual The Visual to which the mouse coordinates will be relative.
리턴 Point