1 write to _hwnd
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
46_hwnd = hwnd;
69 references to _hwnd
UIAutomationClient (69)
MS\Internal\Automation\HwndProxyElementProvider.cs (69)
92if(IsTopLevelWindow(_hwnd)) 97int id = Misc.GetWindowLong(_hwnd, SafeNativeMethods.GWL_ID); 109return ProxyManager.GetClassName( _hwnd ); 116IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero ); 126if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero) 136return IsWindowReallyEnabled( _hwnd ); 144if (SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid) == 0) 154return ((IntPtr) _hwnd).ToInt32(); 165return (gti.hwndFocus == _hwnd) || (SafeNativeMethods.IsChild(_hwnd, gti.hwndFocus)); 169return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(_hwnd)) ? "WinForm" : "Win32"; 173if (IsWindowPatternWindow(_hwnd)) 219return HwndProxyElementProvider.MakeRuntimeId(_hwnd); 230if (IsTopLevelWindow(_hwnd) && SafeNativeMethods.IsIconic(_hwnd)) 236if (!Misc.GetWindowRect(_hwnd, out rcW32)) 247GetAllUIFragmentRoots(_hwnd, false, embeddedRoots); 253SetFocus(_hwnd); 270return ElementProviderFromPoint(_hwnd, x, y); 290if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 314if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 323if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 344if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero)) 365if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero)) 387if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero)) 413int guiThreadId = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid); 523if (!SafeNativeMethods.IsWindow(_hwnd)) 530NativeMethods.HWND hwndOwner = GetRealOwner( _hwnd ); 572IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult); 578if ( SafeNativeMethods.IsWindow( _hwnd ) ) 633NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT); 643if (!Misc.GetWindowRect(_hwnd, out currentRect)) 689if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE)) 701if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 721if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 730if (!Misc.GetWindowRect(_hwnd, out currentRect)) 738if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 747if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 760if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 770if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 794Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo); 814if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 826if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 834if (!SafeNativeMethods.IsWindow(_hwnd)) 927if (!SafeNativeMethods.IsWindow(_hwnd)) 994if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 1194NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1199NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1213if (!IsWindowReallyVisible(_hwnd)) 1219if (IsTopLevelWindow(_hwnd)) 1221NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1225NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanNext, ExcludeSelf, hwndOwner); 1239NativeMethods.HWND next = ScanVisible(_hwnd, ScanNext, ExcludeSelf, NativeMethods.HWND.NULL); 1246if (!IsWindowReallyVisible(_hwnd)) 1252if (IsTopLevelWindow(_hwnd)) 1254NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1259NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, hwndOwner); 1266NativeMethods.HWND prev = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, NativeMethods.HWND.NULL); 1271NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1292NativeMethods.HWND hwnd = GetFirstOrLastOwnedWindow(_hwnd, true); 1296hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1318NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1329hwnd = GetFirstOrLastOwnedWindow(_hwnd, false); 1535_windowPattern = IsWindowPatternWindow(_hwnd); 1555_transformPattern = IsTransformPatternWindow( _hwnd ); 1569int thread = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out process); 1580bool noModalWindow = SafeNativeMethods.EnumThreadWindows(thread, enumWindows, _hwnd); 1957return GetWindowStyle(_hwnd); 1968return GetWindowExStyle(_hwnd);