protected override void WinEventProc( IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime) { if (hwnd == IntPtr.Zero) { return; } WindowLocationChanged?.Invoke(null, new WindowLocationChangedEventArgs(hwnd)); }
///<summary>Invokes registered user-defined handler methods when the native window's location changes.</summary> internal void OnLocationChanged(int left, int top) { var location = new Point(left, top); WindowLocationChanged?.Invoke(this, location); }