4 writes to _hwnd
PresentationFramework (4)
System\Windows\Interop\HwndHost.cs (4)
73
_hwnd
= new HandleRef(null, IntPtr.Zero);
555
_hwnd
= new HandleRef(null, IntPtr.Zero);
1010
_hwnd
= BuildWindowCore(hwndParent);
1094
_hwnd
= new HandleRef(null, IntPtr.Zero);
38 references to _hwnd
PresentationFramework (38)
System\Windows\Interop\HwndHost.cs (38)
69
if (
_hwnd
.Handle != IntPtr.Zero)
71
if (!UnsafeNativeMethods.IsWindow(
_hwnd
))
77
return
_hwnd
.Handle;
302
if (Handle != IntPtr.Zero && (hwndFocus.Handle ==
_hwnd
.Handle || UnsafeNativeMethods.IsChild(
_hwnd
, hwndFocus)))
372
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOW);
381
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
395
IntPtr hwndParent = UnsafeNativeMethods.GetParent(
_hwnd
);
409
/// Gets the ratio of the DPI between the parent of <see cref="
_hwnd
"/>
410
/// and <see cref="
_hwnd
"/>. Normally, this ratio is 1.
418
DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(
_hwnd
), fallbackToNearestMonitorHeuristic: false);
433
/// the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>
656
UnsafeNativeMethods.SetWindowPos(
_hwnd
,
730
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
759
bool result = UnsafeNativeMethods.CriticalPrintWindow(
_hwnd
, hdcBitmap, 0);
768
UnsafeNativeMethods.SendMessage(
_hwnd
.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT));
779
UnsafeNativeMethods.CriticalRedrawWindow(
_hwnd
, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN);
879
UnsafeNativeMethods.EnableWindow(
_hwnd
, boolNewValue);
898
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOWNA);
900
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
953
if(
_hwnd
.Handle == IntPtr.Zero)
962
else if(hwndParent != UnsafeNativeMethods.GetParent(
_hwnd
))
966
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null,hwndParent));
974
var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(
_hwnd
);
978
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null, hwnd.Handle));
1012
if(
_hwnd
.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(
_hwnd
))
1018
int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
_hwnd
.Handle), NativeMethods.GWL_STYLE);
1025
if(hwndParent.Handle != UnsafeNativeMethods.GetParent(
_hwnd
))
1031
if (DpiUtil.GetDpiAwarenessContext(
_hwnd
.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle))
1038
int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out idWindowProcess);
1050
_hwndSubclass.CriticalAttach(
_hwnd
.Handle);
1054
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
1060
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
1093
HandleRef hwnd =
_hwnd
;
1142
/// True when the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>