2 writes to _hwnd
PresentationFramework (2)
System\Windows\Shell\WindowChromeWorker.cs (2)
136
_hwnd
= new WindowInteropHelper(_window).Handle;
167
_hwnd
= new WindowInteropHelper(_window).Handle;
35 references to _hwnd
PresentationFramework (35)
System\Windows\Shell\WindowChromeWorker.cs (35)
146
if (IntPtr.Zero !=
_hwnd
)
150
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
168
Assert.IsNotDefault(
_hwnd
);
169
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
216
if (_chromeInfo != null &&
_hwnd
!= IntPtr.Zero)
232
if (
_hwnd
== IntPtr.Zero || _hwndSource.IsDisposed)
256
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
347
Assert.AreEqual(hwnd,
_hwnd
);
367
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, uMsg, wParam, lParam);
385
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, WM.NCACTIVATE, wParam, new IntPtr(-1));
516
handled = NativeMethods.DwmDefWindowProc(
_hwnd
, uMsg, wParam, lParam, out lRet);
611
Assert.IsNotDefault(
_hwnd
);
612
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
619
NativeMethods.SetWindowLongPtr(
_hwnd
, GWL.STYLE, new IntPtr((int)dwNewStyle));
628
var wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
644
RECT windowPosition = NativeMethods.GetWindowRect(
_hwnd
);
669
IntPtr hmenu = NativeMethods.GetSystemMenu(
_hwnd
, false);
672
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
713
if (IntPtr.Zero ==
_hwnd
|| _hwndSource.IsDisposed)
735
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
741
NativeMethods.SetWindowRgn(
_hwnd
, IntPtr.Zero, NativeMethods.IsWindowVisible(
_hwnd
));
750
WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
769
IntPtr hMon = NativeMethods.MonitorFromWindow(
_hwnd
, MONITOR_DEFAULTTONEAREST);
781
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
858
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
943
if (IntPtr.Zero ==
_hwnd
)
1005
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1079
RECT rcWindow = NativeMethods.GetWindowRect(
_hwnd
);
1118
Assert.IsNotDefault(
_hwnd
);
1143
if (!Utility.IsOSVistaOrNewer ||
_hwnd
== IntPtr.Zero)
1154
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1161
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);