4 writes to _hwnd
PresentationFramework (4)
System\Windows\Interop\HwndHost.cs (4)
76
_hwnd
= new HandleRef(null, IntPtr.Zero);
559
_hwnd
= new HandleRef(null, IntPtr.Zero);
1014
_hwnd
= BuildWindowCore(hwndParent);
1098
_hwnd
= new HandleRef(null, IntPtr.Zero);
38 references to _hwnd
PresentationFramework (38)
System\Windows\Interop\HwndHost.cs (38)
72
if (
_hwnd
.Handle != IntPtr.Zero)
74
if (!UnsafeNativeMethods.IsWindow(
_hwnd
))
80
return
_hwnd
.Handle;
305
if (Handle != IntPtr.Zero && (hwndFocus.Handle ==
_hwnd
.Handle || UnsafeNativeMethods.IsChild(
_hwnd
, hwndFocus)))
375
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOW);
384
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
398
IntPtr hwndParent = UnsafeNativeMethods.GetParent(
_hwnd
);
412
/// Gets the ratio of the DPI between the parent of <see cref="
_hwnd
"/>
413
/// and <see cref="
_hwnd
"/>. Normally, this ratio is 1.
421
DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(
_hwnd
), fallbackToNearestMonitorHeuristic: false);
436
/// the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>
660
UnsafeNativeMethods.SetWindowPos(
_hwnd
,
734
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
763
bool result = UnsafeNativeMethods.CriticalPrintWindow(
_hwnd
, hdcBitmap, 0);
772
UnsafeNativeMethods.SendMessage(
_hwnd
.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT));
783
UnsafeNativeMethods.CriticalRedrawWindow(
_hwnd
, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN);
883
UnsafeNativeMethods.EnableWindow(
_hwnd
, boolNewValue);
902
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOWNA);
904
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
957
if(
_hwnd
.Handle == IntPtr.Zero)
966
else if(hwndParent != UnsafeNativeMethods.GetParent(
_hwnd
))
970
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null,hwndParent));
978
var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(
_hwnd
);
982
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null, hwnd.Handle));
1016
if(
_hwnd
.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(
_hwnd
))
1022
int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
_hwnd
.Handle), NativeMethods.GWL_STYLE);
1029
if(hwndParent.Handle != UnsafeNativeMethods.GetParent(
_hwnd
))
1035
if (DpiUtil.GetDpiAwarenessContext(
_hwnd
.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle))
1042
int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out idWindowProcess);
1054
_hwndSubclass.CriticalAttach(
_hwnd
.Handle);
1058
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
1064
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
1097
HandleRef hwnd =
_hwnd
;
1146
/// True when the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>