2 writes to _hwnd
PresentationFramework (2)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
198
_hwnd
= new WindowInteropHelper(_window).Handle;
235
_hwnd
= new WindowInteropHelper(_window).Handle;
38 references to _hwnd
PresentationFramework (38)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (38)
208
if (IntPtr.Zero !=
_hwnd
)
212
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
236
Assert.IsNotDefault(
_hwnd
);
237
_hwndSource = HwndSource.FromHwnd(
_hwnd
);
301
if (_chromeInfo != null &&
_hwnd
!= IntPtr.Zero)
321
if (
_hwnd
== IntPtr.Zero || _hwndSource.IsDisposed)
345
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
442
RECT rcWindow = NativeMethods.GetWindowRect(
_hwnd
);
546
WINDOWPLACEMENT wp = NativeMethods.GetWindowPlacement(
_hwnd
);
571
var style = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE);
572
var exstyle = (WS_EX)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.EXSTYLE);
618
Assert.AreEqual(hwnd,
_hwnd
);
642
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, uMsg, wParam, lParam);
664
IntPtr lRet = NativeMethods.DefWindowProc(
_hwnd
, WM.NCACTIVATE, wParam, new IntPtr(-1));
803
handled = NativeMethods.DwmDefWindowProc(
_hwnd
, uMsg, wParam, lParam, out lRet);
999
Assert.IsNotDefault(
_hwnd
);
1000
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
1007
NativeMethods.SetWindowLongPtr(
_hwnd
, GWL.STYLE, new IntPtr((int)dwNewStyle));
1020
var wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
1040
RECT windowPosition = NativeMethods.GetWindowRect(
_hwnd
);
1069
IntPtr hmenu = NativeMethods.GetSystemMenu(
_hwnd
, false);
1072
var dwStyle = (WS)NativeMethods.GetWindowLongPtr(
_hwnd
, GWL.STYLE).ToInt32();
1117
if (IntPtr.Zero ==
_hwnd
|| _hwndSource.IsDisposed)
1139
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
1149
NativeMethods.SetWindowRgn(
_hwnd
, IntPtr.Zero, NativeMethods.IsWindowVisible(
_hwnd
));
1162
WINDOWPLACEMENT wpl = NativeMethods.GetWindowPlacement(
_hwnd
);
1181
IntPtr hMon = NativeMethods.MonitorFromWindow(
_hwnd
, MONITOR_DEFAULTTONEAREST);
1193
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
1270
NativeMethods.SetWindowRgn(
_hwnd
, hrgn, NativeMethods.IsWindowVisible(
_hwnd
));
1367
if (IntPtr.Zero ==
_hwnd
)
1429
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1517
Assert.IsNotDefault(
_hwnd
);
1559
if (!Utility.IsOSVistaOrNewer ||
_hwnd
== IntPtr.Zero)
1570
NativeMethods.DwmExtendFrameIntoClientArea(
_hwnd
, ref dwmMargin);
1581
NativeMethods.SetWindowPos(
_hwnd
, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);