Ejemplo n.º 1
0
 private Point ConvertPosition(Point position)
 {
     if (!Hwnd.Equals(RelativeTo))
     {
         NativeMethods.POINT point = position.ToPOINT();
         NativeMethods.MapWindowPoints(Hwnd, RelativeTo, ref point, 1);
         return(point.ToPoint());
     }
     return(position);
 }
Ejemplo n.º 2
0
		private Point ConvertPosition(Point position)
		{
			if (!Hwnd.Equals(RelativeTo))
			{
				NativeMethods.POINT point = position.ToPOINT();
				NativeMethods.MapWindowPoints(Hwnd, RelativeTo, ref point, 1);
				return point.ToPoint();
			}
			return position;
		}