2 writes to _hwnd
PresentationFramework (2)
System\Windows\Shell\WindowChromeWorker.cs (2)
137_hwnd = new WindowInteropHelper(_window).Handle; 168_hwnd = new WindowInteropHelper(_window).Handle;
35 references to _hwnd
PresentationFramework (35)
System\Windows\Shell\WindowChromeWorker.cs (35)
147if (IntPtr.Zero != _hwnd) 151_hwndSource = HwndSource.FromHwnd(_hwnd); 169Assert.IsNotDefault(_hwnd); 170_hwndSource = HwndSource.FromHwnd(_hwnd); 217if (_chromeInfo != null && _hwnd != IntPtr.Zero) 233if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed) 257NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 348Assert.AreEqual(hwnd, _hwnd); 368IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, uMsg, wParam, lParam); 386IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, WM.NCACTIVATE, wParam, new IntPtr(-1)); 517handled = NativeMethods.DwmDefWindowProc(_hwnd, uMsg, wParam, lParam, out lRet); 612Assert.IsNotDefault(_hwnd); 613var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 620NativeMethods.SetWindowLongPtr(_hwnd, GWL.STYLE, new IntPtr((int)dwNewStyle)); 629var wpl = NativeMethods.GetWindowPlacement(_hwnd); 645RECT windowPosition = NativeMethods.GetWindowRect(_hwnd); 670IntPtr hmenu = NativeMethods.GetSystemMenu(_hwnd, false); 673var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 714if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed) 736NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 742NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd)); 751WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(_hwnd); 770IntPtr hMon = NativeMethods.MonitorFromWindow(_hwnd, MONITOR_DEFAULTTONEAREST); 782NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 859NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 944if (IntPtr.Zero == _hwnd) 1006NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1080RECT rcWindow = NativeMethods.GetWindowRect(_hwnd); 1119Assert.IsNotDefault(_hwnd); 1144if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero) 1155NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1162NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);