4 writes to _hwnd
PresentationFramework (4)
System\Windows\Interop\HwndHost.cs (4)
561
_hwnd
= new HandleRef(null, IntPtr.Zero);
1016
_hwnd
= BuildWindowCore(hwndParent);
1100
_hwnd
= new HandleRef(null, IntPtr.Zero);
1119
_hwnd
= new HandleRef(null, IntPtr.Zero);
38 references to _hwnd
PresentationFramework (38)
System\Windows\Interop\HwndHost.cs (38)
307
if (Handle != IntPtr.Zero && (hwndFocus.Handle ==
_hwnd
.Handle || UnsafeNativeMethods.IsChild(
_hwnd
, hwndFocus)))
377
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOW);
386
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
400
IntPtr hwndParent = UnsafeNativeMethods.GetParent(
_hwnd
);
414
/// Gets the ratio of the DPI between the parent of <see cref="
_hwnd
"/>
415
/// and <see cref="
_hwnd
"/>. Normally, this ratio is 1.
423
DpiScale2 dpiParent = DpiUtil.GetWindowDpi(UnsafeNativeMethods.GetParent(
_hwnd
), fallbackToNearestMonitorHeuristic: false);
438
/// the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>
662
UnsafeNativeMethods.SetWindowPos(
_hwnd
,
736
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
765
bool result = UnsafeNativeMethods.CriticalPrintWindow(
_hwnd
, hdcBitmap, 0);
774
UnsafeNativeMethods.SendMessage(
_hwnd
.Handle, WindowMessage.WM_PRINT, hdcBitmap.Handle, (IntPtr) (NativeMethods.PRF_CHILDREN | NativeMethods.PRF_CLIENT | NativeMethods.PRF_ERASEBKGND | NativeMethods.PRF_NONCLIENT));
785
UnsafeNativeMethods.CriticalRedrawWindow(
_hwnd
, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN);
885
UnsafeNativeMethods.EnableWindow(
_hwnd
, boolNewValue);
904
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_SHOWNA);
906
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
959
if(
_hwnd
.Handle == IntPtr.Zero)
968
else if(hwndParent != UnsafeNativeMethods.GetParent(
_hwnd
))
972
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null,hwndParent));
980
var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(
_hwnd
);
984
UnsafeNativeMethods.SetParent(
_hwnd
, new HandleRef(null, hwnd.Handle));
1018
if(
_hwnd
.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(
_hwnd
))
1024
int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
_hwnd
.Handle), NativeMethods.GWL_STYLE);
1031
if(hwndParent.Handle != UnsafeNativeMethods.GetParent(
_hwnd
))
1037
if (DpiUtil.GetDpiAwarenessContext(
_hwnd
.Handle) != DpiUtil.GetDpiAwarenessContext(hwndParent.Handle))
1044
int idWindowThread = UnsafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out idWindowProcess);
1056
_hwndSubclass.CriticalAttach(
_hwnd
.Handle);
1060
UnsafeNativeMethods.ShowWindowAsync(
_hwnd
, NativeMethods.SW_HIDE);
1066
SafeNativeMethods.GetWindowRect(
_hwnd
, ref rc);
1099
HandleRef hwnd =
_hwnd
;
1115
if(
_hwnd
.Handle != IntPtr.Zero)
1117
if(!UnsafeNativeMethods.IsWindow(
_hwnd
))
1123
return
_hwnd
.Handle;
1164
/// True when the parent of <see cref="
_hwnd
"/> and <see cref="
_hwnd
"/>