4 writes to _hwnd
PresentationFramework (4)
System\Windows\Interop\HwndHost.cs (4)
72_hwnd = new HandleRef(null, IntPtr.Zero); 552_hwnd = new HandleRef(null, IntPtr.Zero); 1007_hwnd = BuildWindowCore(hwndParent); 1091_hwnd = new HandleRef(null, IntPtr.Zero);
38 references to _hwnd
PresentationFramework (38)
System\Windows\Interop\HwndHost.cs (38)
68if (_hwnd.Handle != IntPtr.Zero) 70if (!UnsafeNativeMethods.IsWindow(_hwnd)) 76return _hwnd.Handle; 301if (Handle != IntPtr.Zero && (hwndFocus.Handle == _hwnd.Handle || UnsafeNativeMethods.IsChild(_hwnd, hwndFocus))) 371UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_SHOW); 380UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 394IntPtr hwndParent = UnsafeNativeMethods.GetParent(_hwnd); 408/// Gets the ratio of the DPI between the parent of <see cref="_hwnd"/> 409/// and <see cref="_hwnd"/>. Normally, this ratio is 1. 417DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(_hwnd), fallbackToNearestMonitorHeuristic: false); 432/// the parent of <see cref="_hwnd"/> and <see cref="_hwnd"/> 653UnsafeNativeMethods.SetWindowPos(_hwnd, 727SafeNativeMethods.GetWindowRect(_hwnd, ref rc); 756bool result = UnsafeNativeMethods.CriticalPrintWindow(_hwnd, hdcBitmap, 0); 765UnsafeNativeMethods.SendMessage(_hwnd.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT)); 776UnsafeNativeMethods.CriticalRedrawWindow(_hwnd, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN); 876UnsafeNativeMethods.EnableWindow(_hwnd, boolNewValue); 895UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_SHOWNA); 897UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 950if(_hwnd.Handle == IntPtr.Zero) 959else if(hwndParent != UnsafeNativeMethods.GetParent(_hwnd)) 963UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null,hwndParent)); 971var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(_hwnd); 975UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null, hwnd.Handle)); 1009if(_hwnd.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(_hwnd)) 1015int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,_hwnd.Handle), NativeMethods.GWL_STYLE); 1022if(hwndParent.Handle != UnsafeNativeMethods.GetParent(_hwnd)) 1028if (DpiUtil.GetDpiAwarenessContext(_hwnd.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle)) 1035int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(_hwnd, out idWindowProcess); 1047_hwndSubclass.CriticalAttach(_hwnd.Handle); 1051UnsafeNativeMethods.ShowWindowAsync(_hwnd, NativeMethods.SW_HIDE); 1057SafeNativeMethods.GetWindowRect(_hwnd, ref rc); 1090HandleRef hwnd = _hwnd; 1139/// True when the parent of <see cref="_hwnd"/> and <see cref="_hwnd"/>