2 writes to _hwnd
PresentationFramework (2)
System\Windows\Shell\WindowChromeWorker.cs (2)
136_hwnd = new WindowInteropHelper(_window).Handle; 167_hwnd = new WindowInteropHelper(_window).Handle;
35 references to _hwnd
PresentationFramework (35)
System\Windows\Shell\WindowChromeWorker.cs (35)
146if (IntPtr.Zero != _hwnd) 150_hwndSource = HwndSource.FromHwnd(_hwnd); 168Assert.IsNotDefault(_hwnd); 169_hwndSource = HwndSource.FromHwnd(_hwnd); 216if (_chromeInfo != null && _hwnd != IntPtr.Zero) 232if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed) 256NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 347Assert.AreEqual(hwnd, _hwnd); 367IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, uMsg, wParam, lParam); 385IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, WM.NCACTIVATE, wParam, new IntPtr(-1)); 516handled = NativeMethods.DwmDefWindowProc(_hwnd, uMsg, wParam, lParam, out lRet); 611Assert.IsNotDefault(_hwnd); 612var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 619NativeMethods.SetWindowLongPtr(_hwnd, GWL.STYLE, new IntPtr((int)dwNewStyle)); 628var wpl = NativeMethods.GetWindowPlacement(_hwnd); 644RECT windowPosition = NativeMethods.GetWindowRect(_hwnd); 669IntPtr hmenu = NativeMethods.GetSystemMenu(_hwnd, false); 672var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 713if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed) 735NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 741NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd)); 750WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(_hwnd); 769IntPtr hMon = NativeMethods.MonitorFromWindow(_hwnd, MONITOR_DEFAULTTONEAREST); 781NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 858NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 943if (IntPtr.Zero == _hwnd) 1005NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1079RECT rcWindow = NativeMethods.GetWindowRect(_hwnd); 1118Assert.IsNotDefault(_hwnd); 1143if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero) 1154NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1161NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);