2 writes to _hwnd
PresentationFramework (2)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
198_hwnd = new WindowInteropHelper(_window).Handle; 235_hwnd = new WindowInteropHelper(_window).Handle;
38 references to _hwnd
PresentationFramework (38)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (38)
208if (IntPtr.Zero != _hwnd) 212_hwndSource = HwndSource.FromHwnd(_hwnd); 236Assert.IsNotDefault(_hwnd); 237_hwndSource = HwndSource.FromHwnd(_hwnd); 301if (_chromeInfo != null && _hwnd != IntPtr.Zero) 321if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed) 345NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 442RECT rcWindow = NativeMethods.GetWindowRect(_hwnd); 546WINDOWPLACEMENT wp = NativeMethods.GetWindowPlacement(_hwnd); 571var style = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE); 572var exstyle = (WS_EX)NativeMethods.GetWindowLongPtr(_hwnd, GWL.EXSTYLE); 618Assert.AreEqual(hwnd, _hwnd); 642IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, uMsg, wParam, lParam); 664IntPtr lRet = NativeMethods.DefWindowProc(_hwnd, WM.NCACTIVATE, wParam, new IntPtr(-1)); 803handled = NativeMethods.DwmDefWindowProc(_hwnd, uMsg, wParam, lParam, out lRet); 999Assert.IsNotDefault(_hwnd); 1000var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 1007NativeMethods.SetWindowLongPtr(_hwnd, GWL.STYLE, new IntPtr((int)dwNewStyle)); 1020var wpl = NativeMethods.GetWindowPlacement(_hwnd); 1040RECT windowPosition = NativeMethods.GetWindowRect(_hwnd); 1069IntPtr hmenu = NativeMethods.GetSystemMenu(_hwnd, false); 1072var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 1117if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed) 1139NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 1149NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd)); 1162WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(_hwnd); 1181IntPtr hMon = NativeMethods.MonitorFromWindow(_hwnd, MONITOR_DEFAULTTONEAREST); 1193NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 1270NativeMethods.SetWindowRgn(_hwnd, hrgn, NativeMethods.IsWindowVisible(_hwnd)); 1367if (IntPtr.Zero == _hwnd) 1429NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1517Assert.IsNotDefault(_hwnd); 1559if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero) 1570NativeMethods.DwmExtendFrameIntoClientArea(_hwnd, ref dwmMargin); 1581NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);