4 writes to _hwnd
PresentationFramework (4)
System\Windows\Interop\HwndHost.cs (4)
72
_hwnd
= new HandleRef(null, IntPtr.Zero);
554
_hwnd
= new HandleRef(null, IntPtr.Zero);
1009
_hwnd
= BuildWindowCore(hwndParent);
1093
_hwnd
= new HandleRef(null, IntPtr.Zero);
38 references to _hwnd
PresentationFramework (38)
System\Windows\Interop\HwndHost.cs (38)
68
if (
_hwnd
.Handle != IntPtr.Zero)
70
if (!UnsafeNativeMethods.IsWindow(
_hwnd
))
76
return
_hwnd
.Handle;
301
if (Handle != IntPtr.Zero && (hwndFocus.Handle ==
_hwnd
.Handle || UnsafeNativeMethods.IsChild(
_hwnd
, hwndFocus)))
371
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOW);
380
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
394
IntPtr 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.
417
DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(
_hwnd
), fallbackToNearestMonitorHeuristic: false);
432
/// the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>
655
UnsafeNativeMethods.SetWindowPos(
_hwnd
,
729
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
758
bool result = UnsafeNativeMethods.CriticalPrintWindow(
_hwnd
, hdcBitmap, 0);
767
UnsafeNativeMethods.SendMessage(
_hwnd
.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT));
778
UnsafeNativeMethods.CriticalRedrawWindow(
_hwnd
, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN);
878
UnsafeNativeMethods.EnableWindow(
_hwnd
, boolNewValue);
897
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOWNA);
899
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
952
if(
_hwnd
.Handle == IntPtr.Zero)
961
else if(hwndParent != UnsafeNativeMethods.GetParent(
_hwnd
))
965
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null,hwndParent));
973
var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(
_hwnd
);
977
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null, hwnd.Handle));
1011
if(
_hwnd
.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(
_hwnd
))
1017
int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
_hwnd
.Handle), NativeMethods.GWL_STYLE);
1024
if(hwndParent.Handle != UnsafeNativeMethods.GetParent(
_hwnd
))
1030
if (DpiUtil.GetDpiAwarenessContext(
_hwnd
.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle))
1037
int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out idWindowProcess);
1049
_hwndSubclass.CriticalAttach(
_hwnd
.Handle);
1053
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
1059
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
1092
HandleRef hwnd =
_hwnd
;
1141
/// True when the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>