19 references to Cast
UIAutomationClient (19)
MS\Internal\Automation\Accessible.cs (1)
94
return ProxyManager.GetClassName(NativeMethods.HWND.
Cast
(hwnd)) == szClass;
MS\Internal\Automation\BoundingRectTracker.cs (2)
79
if (!SafeNativeMethods.IsWindowVisible(NativeMethods.HWND.
Cast
( hwnd )))
87
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\ClientEventManager.cs (2)
601
if ( rawEl != null && !HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.
Cast
( hwnd ) ) )
655
if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.
Cast
( hwnd ) ) )
MS\Internal\Automation\FocusTracker.cs (4)
133
provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.
Cast
(hwnd), idChild, UnsafeNativeMethods.OBJID_CLIENT);
162
provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.
Cast
(hwnd), idChild, idObject);
254
if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.
Cast
(hwndCur)))
294
IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.
Cast
(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
650
NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.
Cast
(_hwnd), SafeNativeMethods.GA_PARENT);
MS\Internal\Automation\MenuTracker.cs (1)
61
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\UiaCoreApi.cs (2)
1578
provider = new HwndProxyElementProvider(NativeMethods.HWND.
Cast
(hwnd));
1582
provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.
Cast
(hwnd), 0, UnsafeNativeMethods.OBJID_CLIENT);
MS\Internal\Automation\WindowHideOrCloseTracker.cs (1)
60
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
77
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
(hwnd);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
61
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
74
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
(hwnd);
MS\Win32\NativeMethods.cs (1)
70
HWND hr =
Cast
((HWND)oCompare);
System\Windows\Automation\Automation.cs (1)
177
if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.
Cast
( new IntPtr( (int)val ) ) ) )