2 writes to _hwnd
PresentationFramework (2)
System\Windows\Shell\WindowChromeWorker.cs (2)
137
_hwnd
= new WindowInteropHelper(_window).Handle;
168
_hwnd
= new WindowInteropHelper(_window).Handle;
35 references to _hwnd
PresentationFramework (35)
System\Windows\Shell\WindowChromeWorker.cs (35)
147
if (IntPtr.Zero !=
_hwnd
)
151
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
169
Assert.IsNotDefault(
_hwnd
);
170
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
217
if (_chromeInfo != null &&
_hwnd
!= IntPtr.Zero)
233
if (
_hwnd
== IntPtr.Zero || _hwndSource.IsDisposed)
257
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
348
Assert.AreEqual(hwnd,
_hwnd
);
368
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, uMsg, wParam, lParam);
386
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, WM.NCACTIVATE, wParam, new IntPtr(-1));
517
handled = NativeMethods.DwmDefWindowProc(
_hwnd
, uMsg, wParam, lParam, out lRet);
612
Assert.IsNotDefault(
_hwnd
);
613
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
620
NativeMethods.SetWindowLongPtr(
_hwnd
, GWL.STYLE, new IntPtr((int)dwNewStyle));
629
var wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
645
RECT windowPosition = NativeMethods.GetWindowRect(
_hwnd
);
670
IntPtr hmenu = NativeMethods.GetSystemMenu(
_hwnd
, false);
673
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
714
if (IntPtr.Zero ==
_hwnd
|| _hwndSource.IsDisposed)
736
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
742
NativeMethods.SetWindowRgn(
_hwnd
, IntPtr.Zero, NativeMethods.IsWindowVisible(
_hwnd
));
751
WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
770
IntPtr hMon = NativeMethods.MonitorFromWindow(
_hwnd
, MONITOR_DEFAULTTONEAREST);
782
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
859
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
944
if (IntPtr.Zero ==
_hwnd
)
1006
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1080
RECT rcWindow = NativeMethods.GetWindowRect(
_hwnd
);
1119
Assert.IsNotDefault(
_hwnd
);
1144
if (!Utility.IsOSVistaOrNewer ||
_hwnd
== IntPtr.Zero)
1155
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1162
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);