2 writes to _hwnd
PresentationFramework (2)
System\Windows\Shell\WindowChromeWorker.cs (2)
129
_hwnd
= new WindowInteropHelper(_window).Handle;
160
_hwnd
= new WindowInteropHelper(_window).Handle;
35 references to _hwnd
PresentationFramework (35)
System\Windows\Shell\WindowChromeWorker.cs (35)
139
if (IntPtr.Zero !=
_hwnd
)
143
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
161
Assert.IsNotDefault(
_hwnd
);
162
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
206
if (_chromeInfo != null &&
_hwnd
!= IntPtr.Zero)
222
if (
_hwnd
== IntPtr.Zero || _hwndSource.IsDisposed)
246
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
337
Assert.AreEqual(hwnd,
_hwnd
);
357
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, uMsg, wParam, lParam);
375
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, WM.NCACTIVATE, wParam, new IntPtr(-1));
506
handled = NativeMethods.DwmDefWindowProc(
_hwnd
, uMsg, wParam, lParam, out lRet);
601
Assert.IsNotDefault(
_hwnd
);
602
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
609
NativeMethods.SetWindowLongPtr(
_hwnd
, GWL.STYLE, new IntPtr((int)dwNewStyle));
618
var wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
634
RECT windowPosition = NativeMethods.GetWindowRect(
_hwnd
);
659
IntPtr hmenu = NativeMethods.GetSystemMenu(
_hwnd
, false);
662
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
703
if (IntPtr.Zero ==
_hwnd
|| _hwndSource.IsDisposed)
725
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
731
NativeMethods.SetWindowRgn(
_hwnd
, IntPtr.Zero, NativeMethods.IsWindowVisible(
_hwnd
));
740
WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
759
IntPtr hMon = NativeMethods.MonitorFromWindow(
_hwnd
, MONITOR_DEFAULTTONEAREST);
771
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
848
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
933
if (IntPtr.Zero ==
_hwnd
)
995
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1069
RECT rcWindow = NativeMethods.GetWindowRect(
_hwnd
);
1108
Assert.IsNotDefault(
_hwnd
);
1133
if (!Utility.IsOSVistaOrNewer ||
_hwnd
== IntPtr.Zero)
1144
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1151
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);