2 writes to _hwnd
PresentationFramework (2)
System\Windows\Shell\WindowChromeWorker.cs (2)
129_hwnd = new WindowInteropHelper(_window).Handle; 160_hwnd = new WindowInteropHelper(_window).Handle;
35 references to _hwnd
PresentationFramework (35)
System\Windows\Shell\WindowChromeWorker.cs (35)
139if (IntPtr.Zero != _hwnd) 143_hwndSource = HwndSource.FromHwnd(_hwnd); 161Assert.IsNotDefault(_hwnd); 162_hwndSource = HwndSource.FromHwnd(_hwnd); 206if (_chromeInfo != null && _hwnd != IntPtr.Zero) 222if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed) 246NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 337Assert.AreEqual(hwnd, _hwnd); 357IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, uMsg, wParam, lParam); 375IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, WM.NCACTIVATE, wParam, new IntPtr(-1)); 506handled = NativeMethods.DwmDefWindowProc(_hwnd, uMsg, wParam, lParam, out lRet); 601Assert.IsNotDefault(_hwnd); 602var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 609NativeMethods.SetWindowLongPtr(_hwnd, GWL.STYLE, new IntPtr((int)dwNewStyle)); 618var wpl = NativeMethods.GetWindowPlacement(_hwnd); 634RECT windowPosition = NativeMethods.GetWindowRect(_hwnd); 659IntPtr hmenu = NativeMethods.GetSystemMenu(_hwnd, false); 662var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 703if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed) 725NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 731NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd)); 740WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(_hwnd); 759IntPtr hMon = NativeMethods.MonitorFromWindow(_hwnd, MONITOR_DEFAULTTONEAREST); 771NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 848NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 933if (IntPtr.Zero == _hwnd) 995NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1069RECT rcWindow = NativeMethods.GetWindowRect(_hwnd); 1108Assert.IsNotDefault(_hwnd); 1133if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero) 1144NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1151NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);