4 writes to _hwnd
PresentationFramework (4)
src\Framework\System\Windows\Interop\HwndHost.cs (4)
697_hwnd = new HandleRef(null, IntPtr.Zero); 1238_hwnd = BuildWindowCore(hwndParent); 1327_hwnd = new HandleRef(null, IntPtr.Zero); 1350_hwnd = new HandleRef(null, IntPtr.Zero);
43 references to _hwnd
PresentationFramework (43)
src\Framework\System\Windows\Interop\HwndHost.cs (43)
411if (_hwnd.Handle != IntPtr.Zero && (hwndFocus.Handle == _hwnd.Handle || UnsafeNativeMethods.IsChild(_hwnd, hwndFocus))) 490UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_SHOW); 499UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 519IntPtr hwndParent = UnsafeNativeMethods.GetParent(_hwnd); 533/// Gets the ratio of the DPI between the parent of <see cref="_hwnd"/> 534/// and <see cref="_hwnd"/>. Normally, this ratio is 1. 546DpiScale2 dpi = DpiUtil.GetWindowDpi(_hwnd.Handle, fallbackToNearestMonitorHeuristic: false); 547DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(_hwnd), fallbackToNearestMonitorHeuristic: false); 562/// the parent of <see cref="_hwnd"/> and <see cref="_hwnd"/> 808UnsafeNativeMethods.SetWindowPos(_hwnd, 895if(_hwnd.Handle != IntPtr.Zero && UnsafeNativeMethods.IsWindow(_hwnd)) 898SafeNativeMethods.GetWindowRect(_hwnd, ref rc); 927bool result = UnsafeNativeMethods.CriticalPrintWindow(_hwnd, hdcBitmap, 0); 936UnsafeNativeMethods.SendMessage(_hwnd.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT)); 947UnsafeNativeMethods.CriticalRedrawWindow(_hwnd, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN); 1097UnsafeNativeMethods.EnableWindow(_hwnd, boolNewValue); 1122UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_SHOWNA); 1124UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 1183if(_hwnd.Handle == IntPtr.Zero) 1192else if(hwndParent != UnsafeNativeMethods.GetParent(_hwnd)) 1196UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null,hwndParent)); 1199else if (!FrameworkAppContextSwitches.Enable2019_12_B || _hwnd.Handle != IntPtr.Zero) // When the "knob" is disabled, it would be as if this condition didn't exist - which is equivalent to the code prior to this change. 1204var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(_hwnd); 1205UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null, hwnd.Handle)); 1240if(_hwnd.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(_hwnd)) 1246int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,_hwnd.Handle), NativeMethods.GWL_STYLE); 1253if(hwndParent.Handle != UnsafeNativeMethods.GetParent(_hwnd)) 1259if (DpiUtil.GetDpiAwarenessContext(_hwnd.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle)) 1266int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(_hwnd, out idWindowProcess); 1278_hwndSubclass.CriticalAttach(_hwnd.Handle); 1282UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 1288SafeNativeMethods.GetWindowRect(_hwnd, ref rc); 1326HandleRef hwnd = _hwnd; 1346if(_hwnd.Handle != IntPtr.Zero) 1348if(!UnsafeNativeMethods.IsWindow(_hwnd)) 1354return _hwnd.Handle; 1411/// True when the parent of <see cref="_hwnd"/> and <see cref="_hwnd"/>