protected override void Callback(ref CallWndProcReturnMessage msg) { switch (msg.Msg) { case NativeMethods.WM_DESTROY: _host.WindowDestroyed(ref msg); break; case NativeMethods.WM_SIZE: _host.WindowResized(ref msg); break; } }
private void WindowResized(ref CallWndProcReturnMessage msg) { WindowFilter filter; if (!_windows.TryGetValue(msg.HWnd, out filter)) { return; } if (filter != null) { filter.ResizeWindow(this, msg.HWnd); } }
private void WindowDestroyed(ref CallWndProcReturnMessage msg) { WindowFilter filter; if (_windows.TryGetValue(msg.HWnd, out filter)) { if (filter != null) { filter.DetachWindow(this, msg.HWnd); } RegisterWindow(new WindowLog(false, msg.HWnd, null)); } }