4 writes to _hwnd
PresentationFramework (4)
System\Windows\Interop\HwndHost.cs (4)
565_hwnd = new HandleRef(null, IntPtr.Zero); 1020_hwnd = BuildWindowCore(hwndParent); 1104_hwnd = new HandleRef(null, IntPtr.Zero); 1123_hwnd = new HandleRef(null, IntPtr.Zero);
38 references to _hwnd
PresentationFramework (38)
System\Windows\Interop\HwndHost.cs (38)
311if (Handle != IntPtr.Zero && (hwndFocus.Handle == _hwnd.Handle || UnsafeNativeMethods.IsChild(_hwnd, hwndFocus))) 381UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_SHOW); 390UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 404IntPtr hwndParent = UnsafeNativeMethods.GetParent(_hwnd); 418/// Gets the ratio of the DPI between the parent of <see cref="_hwnd"/> 419/// and <see cref="_hwnd"/>. Normally, this ratio is 1. 427DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(_hwnd), fallbackToNearestMonitorHeuristic: false); 442/// the parent of <see cref="_hwnd"/> and <see cref="_hwnd"/> 666UnsafeNativeMethods.SetWindowPos(_hwnd, 740SafeNativeMethods.GetWindowRect(_hwnd, ref rc); 769bool result = UnsafeNativeMethods.CriticalPrintWindow(_hwnd, hdcBitmap, 0); 778UnsafeNativeMethods.SendMessage(_hwnd.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT)); 789UnsafeNativeMethods.CriticalRedrawWindow(_hwnd, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN); 889UnsafeNativeMethods.EnableWindow(_hwnd, boolNewValue); 908UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_SHOWNA); 910UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 963if(_hwnd.Handle == IntPtr.Zero) 972else if(hwndParent != UnsafeNativeMethods.GetParent(_hwnd)) 976UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null,hwndParent)); 984var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(_hwnd); 988UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null, hwnd.Handle)); 1022if(_hwnd.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(_hwnd)) 1028int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,_hwnd.Handle), NativeMethods.GWL_STYLE); 1035if(hwndParent.Handle != UnsafeNativeMethods.GetParent(_hwnd)) 1041if (DpiUtil.GetDpiAwarenessContext(_hwnd.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle)) 1048int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(_hwnd, out idWindowProcess); 1060_hwndSubclass.CriticalAttach(_hwnd.Handle); 1064UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 1070SafeNativeMethods.GetWindowRect(_hwnd, ref rc); 1103HandleRef hwnd = _hwnd; 1119if(_hwnd.Handle != IntPtr.Zero) 1121if(!UnsafeNativeMethods.IsWindow(_hwnd)) 1127return _hwnd.Handle; 1168/// True when the parent of <see cref="_hwnd"/> and <see cref="_hwnd"/>