13 references to IsWindow
System.Windows.Forms (13)
winforms\Managed\System\WinForms\Application.cs (5)
1308
Debug.Assert(UnsafeNativeMethods.
IsWindow
(handle), "Handle being parked is not a valid window handle");
4275
if (UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWnd))) {
4301
if (UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWnd))) SafeNativeMethods.EnableWindow(new HandleRef(null, hWnd), state);
4313
if (activeHwnd != IntPtr.Zero && UnsafeNativeMethods.
IsWindow
(new HandleRef(null, activeHwnd))) {
4317
if (focusedHwnd != IntPtr.Zero && UnsafeNativeMethods.
IsWindow
(new HandleRef(null, focusedHwnd))) {
winforms\Managed\System\WinForms\Control.cs (3)
7047
Debug.Assert(hWnd == IntPtr.Zero || UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWnd)));
7053
if (hWnd == IntPtr.Zero || UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWnd))) {
11032
&& UnsafeNativeMethods.
IsWindow
(parentHandle)) { // and still is a window
winforms\Managed\System\WinForms\Form.cs (3)
6232
if (!UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWndActive))) hWndActive = hWndOwner;
6233
if (UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWndActive)) && SafeNativeMethods.IsWindowVisible(new HandleRef(null, hWndActive))) {
6236
else if (UnsafeNativeMethods.
IsWindow
(new HandleRef(null, hWndOwner)) && SafeNativeMethods.IsWindowVisible(new HandleRef(null, hWndOwner))){
winforms\Managed\System\WinForms\NativeWindow.cs (1)
174
if (UnsafeNativeMethods.
IsWindow
(new HandleRef(null, handle))) {
winforms\Managed\System\WinForms\Timer.cs (1)
399
if (_stoppingTimer || hWnd == IntPtr.Zero || !UnsafeNativeMethods.
IsWindow
(new HandleRef(this, hWnd))) {