19 references to Cast
UIAutomationClient (19)
MS\Internal\Automation\Accessible.cs (1)
102
return ProxyManager.GetClassName(NativeMethods.HWND.
Cast
(hwnd)) == szClass;
MS\Internal\Automation\BoundingRectTracker.cs (2)
87
if (!SafeNativeMethods.IsWindowVisible(NativeMethods.HWND.
Cast
( hwnd )))
95
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\ClientEventManager.cs (2)
610
if ( rawEl != null && !HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.
Cast
( hwnd ) ) )
665
if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.
Cast
( hwnd ) ) )
MS\Internal\Automation\FocusTracker.cs (4)
141
provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.
Cast
(hwnd), idChild, UnsafeNativeMethods.OBJID_CLIENT);
170
provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.
Cast
(hwnd), idChild, idObject);
262
if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.
Cast
(hwndCur)))
302
IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.
Cast
(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
657
NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.
Cast
(_hwnd), SafeNativeMethods.GA_PARENT);
MS\Internal\Automation\MenuTracker.cs (1)
70
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\UiaCoreAPI.cs (2)
1569
provider = new HwndProxyElementProvider(NativeMethods.HWND.
Cast
(hwnd));
1573
provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.
Cast
(hwnd), 0, UnsafeNativeMethods.OBJID_CLIENT);
MS\Internal\Automation\WindowHideOrCloseTracker.cs (1)
68
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
85
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
(hwnd);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
70
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
82
NativeMethods.HWND nativeHwnd = NativeMethods.HWND.
Cast
(hwnd);
MS\Win32\NativeMethods.cs (1)
69
HWND hr =
Cast
((HWND)oCompare);
System\Windows\Automation\Automation.cs (1)
201
if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.
Cast
( new IntPtr( (int)val ) ) ) )