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)
411
if (
_hwnd
.Handle != IntPtr.Zero && (hwndFocus.Handle ==
_hwnd
.Handle || UnsafeNativeMethods.IsChild(
_hwnd
, hwndFocus)))
490
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOW);
499
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
519
IntPtr 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.
546
DpiScale2 dpi = DpiUtil.GetWindowDpi(
_hwnd
.Handle, fallbackToNearestMonitorHeuristic: false);
547
DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(
_hwnd
), fallbackToNearestMonitorHeuristic: false);
562
/// the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>
808
UnsafeNativeMethods.SetWindowPos(
_hwnd
,
895
if(
_hwnd
.Handle != IntPtr.Zero && UnsafeNativeMethods.IsWindow(
_hwnd
))
898
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
927
bool result = UnsafeNativeMethods.CriticalPrintWindow(
_hwnd
, hdcBitmap, 0);
936
UnsafeNativeMethods.SendMessage(
_hwnd
.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT));
947
UnsafeNativeMethods.CriticalRedrawWindow(
_hwnd
, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN);
1097
UnsafeNativeMethods.EnableWindow(
_hwnd
, boolNewValue);
1122
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOWNA);
1124
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
1183
if(
_hwnd
.Handle == IntPtr.Zero)
1192
else if(hwndParent != UnsafeNativeMethods.GetParent(
_hwnd
))
1196
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null,hwndParent));
1199
else 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.
1204
var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(
_hwnd
);
1205
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null, hwnd.Handle));
1240
if(
_hwnd
.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(
_hwnd
))
1246
int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
_hwnd
.Handle), NativeMethods.GWL_STYLE);
1253
if(hwndParent.Handle != UnsafeNativeMethods.GetParent(
_hwnd
))
1259
if (DpiUtil.GetDpiAwarenessContext(
_hwnd
.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle))
1266
int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out idWindowProcess);
1278
_hwndSubclass.CriticalAttach(
_hwnd
.Handle);
1282
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
1288
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
1326
HandleRef hwnd =
_hwnd
;
1346
if(
_hwnd
.Handle != IntPtr.Zero)
1348
if(!UnsafeNativeMethods.IsWindow(
_hwnd
))
1354
return
_hwnd
.Handle;
1411
/// True when the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>