/// <summary>
 /// Initializes a new instance of the <see cref="ContactHandler"/> class.
 /// </summary>
 /// <param name="handle">Window handle for which contacts should be received</param>
 /// <param name="relativeTo">Contacts coordinates will be relative to this window handle</param>
 /// <remarks>
 /// If <paramref name="handle"/> is <c>IntPtr.Zero</c> contacts for all windows will be received
 /// Use <c>IntPtr.Zero</c> in <paramref name="relativeTo"/> to get x,y in screen coordinates.
 /// </remarks>
 public ContactHandler(IntPtr handle, IntPtr relativeTo)
 {
     Handle = handle;
     logic  = CommunicationLogic.Instance;
     logic.RegisterHandler(this);
     RelativeTo = relativeTo;
 }
示例#2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ContactHandler"/> class.
		/// </summary>
		/// <param name="handle">Window handle for which contacts should be received</param>
		/// <param name="relativeTo">Contacts coordinates will be relative to this window handle</param>
		/// <remarks>
		/// If <paramref name="handle"/> is <c>IntPtr.Zero</c> contacts for all windows will be received
		/// Use <c>IntPtr.Zero</c> in <paramref name="relativeTo"/> to get x,y in screen coordinates.
		/// </remarks>
		public ContactHandler(IntPtr handle, IntPtr relativeTo)
		{
			Handle = handle;
			logic = CommunicationLogic.Instance;
			logic.RegisterHandler(this);
			RelativeTo = relativeTo;
		}