SetCapture() private method

private SetCapture ( IntPtr hWnd ) : IntPtr
hWnd System.IntPtr
return System.IntPtr
Example #1
0
 void MouseButtonDown(Point screenLocation)
 {
     if (!_linkClientRect.Contains(PointToClient(screenLocation)))
     {
         _captured = true;
         Win32Helper.SetCapture(Handle);
         _mouseDownScreenLocation = screenLocation;
         _mouseDownFormLocation   = new Point(_currentLeft, _currentTop);
     }
 }