1 write to _hwnd
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
55_hwnd = hwnd;
69 references to _hwnd
UIAutomationClient (69)
MS\Internal\Automation\HwndProxyElementProvider.cs (69)
101if(IsTopLevelWindow(_hwnd)) 106int id = Misc.GetWindowLong(_hwnd, SafeNativeMethods.GWL_ID); 118return ProxyManager.GetClassName( _hwnd ); 125IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero ); 135if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero) 145return IsWindowReallyEnabled( _hwnd ); 155if (SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid) == 0) 165return ((IntPtr) _hwnd).ToInt32(); 176return (gti.hwndFocus == _hwnd) || (SafeNativeMethods.IsChild(_hwnd, gti.hwndFocus)); 180return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(_hwnd)) ? "WinForm" : "Win32"; 184if (IsWindowPatternWindow(_hwnd)) 230return HwndProxyElementProvider.MakeRuntimeId(_hwnd); 241if (IsTopLevelWindow(_hwnd) && SafeNativeMethods.IsIconic(_hwnd)) 247if (!Misc.GetWindowRect(_hwnd, out rcW32)) 258GetAllUIFragmentRoots(_hwnd, false, embeddedRoots); 264SetFocus(_hwnd); 281return ElementProviderFromPoint(_hwnd, x, y); 301if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 324if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 333if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 354if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero)) 375if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero)) 397if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero)) 425int guiThreadId = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid); 535if (!SafeNativeMethods.IsWindow(_hwnd)) 544NativeMethods.HWND hwndOwner = GetRealOwner( _hwnd ); 589IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult); 595if ( SafeNativeMethods.IsWindow( _hwnd ) ) 650NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT); 660if (!Misc.GetWindowRect(_hwnd, out currentRect)) 706if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE)) 716if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 736if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 745if (!Misc.GetWindowRect(_hwnd, out currentRect)) 753if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 762if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 775if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 785if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 809Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo); 827if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 839if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 847if (!SafeNativeMethods.IsWindow(_hwnd)) 940if (!SafeNativeMethods.IsWindow(_hwnd)) 1007if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 1207NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1212NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1226if (!IsWindowReallyVisible(_hwnd)) 1232if (IsTopLevelWindow(_hwnd)) 1234NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1238NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanNext, ExcludeSelf, hwndOwner); 1252NativeMethods.HWND next = ScanVisible(_hwnd, ScanNext, ExcludeSelf, NativeMethods.HWND.NULL); 1259if (!IsWindowReallyVisible(_hwnd)) 1265if (IsTopLevelWindow(_hwnd)) 1267NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1272NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, hwndOwner); 1279NativeMethods.HWND prev = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, NativeMethods.HWND.NULL); 1284NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1305NativeMethods.HWND hwnd = GetFirstOrLastOwnedWindow(_hwnd, true); 1309hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1331NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1342hwnd = GetFirstOrLastOwnedWindow(_hwnd, false); 1551_windowPattern = IsWindowPatternWindow(_hwnd); 1571_transformPattern = IsTransformPatternWindow( _hwnd ); 1587int thread = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out process); 1598bool noModalWindow = SafeNativeMethods.EnumThreadWindows(thread, enumWindows, _hwnd); 1975return GetWindowStyle(_hwnd); 1986return GetWindowExStyle(_hwnd);