1 write to _hwnd
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
47_hwnd = hwnd;
69 references to _hwnd
UIAutomationClient (69)
MS\Internal\Automation\HwndProxyElementProvider.cs (69)
93if(IsTopLevelWindow(_hwnd)) 98int id = Misc.GetWindowLong(_hwnd, SafeNativeMethods.GWL_ID); 110return ProxyManager.GetClassName( _hwnd ); 117IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero ); 127if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero) 137return IsWindowReallyEnabled( _hwnd ); 145if (SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid) == 0) 155return ((IntPtr) _hwnd).ToInt32(); 166return (gti.hwndFocus == _hwnd) || (SafeNativeMethods.IsChild(_hwnd, gti.hwndFocus)); 170return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(_hwnd)) ? "WinForm" : "Win32"; 174if (IsWindowPatternWindow(_hwnd)) 220return HwndProxyElementProvider.MakeRuntimeId(_hwnd); 231if (IsTopLevelWindow(_hwnd) && SafeNativeMethods.IsIconic(_hwnd)) 237if (!Misc.GetWindowRect(_hwnd, out rcW32)) 248GetAllUIFragmentRoots(_hwnd, false, embeddedRoots); 254SetFocus(_hwnd); 271return ElementProviderFromPoint(_hwnd, x, y); 291if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 315if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 324if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 345if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero)) 366if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero)) 388if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero)) 414int guiThreadId = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid); 524if (!SafeNativeMethods.IsWindow(_hwnd)) 531NativeMethods.HWND hwndOwner = GetRealOwner( _hwnd ); 573IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult); 579if ( SafeNativeMethods.IsWindow( _hwnd ) ) 634NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT); 644if (!Misc.GetWindowRect(_hwnd, out currentRect)) 690if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE)) 702if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 722if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 731if (!Misc.GetWindowRect(_hwnd, out currentRect)) 739if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 748if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 761if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 771if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 795Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo); 815if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 827if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 835if (!SafeNativeMethods.IsWindow(_hwnd)) 928if (!SafeNativeMethods.IsWindow(_hwnd)) 995if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 1195NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1200NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1214if (!IsWindowReallyVisible(_hwnd)) 1220if (IsTopLevelWindow(_hwnd)) 1222NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1226NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanNext, ExcludeSelf, hwndOwner); 1240NativeMethods.HWND next = ScanVisible(_hwnd, ScanNext, ExcludeSelf, NativeMethods.HWND.NULL); 1247if (!IsWindowReallyVisible(_hwnd)) 1253if (IsTopLevelWindow(_hwnd)) 1255NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1260NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, hwndOwner); 1267NativeMethods.HWND prev = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, NativeMethods.HWND.NULL); 1272NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1293NativeMethods.HWND hwnd = GetFirstOrLastOwnedWindow(_hwnd, true); 1297hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1319NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1330hwnd = GetFirstOrLastOwnedWindow(_hwnd, false); 1536_windowPattern = IsWindowPatternWindow(_hwnd); 1556_transformPattern = IsTransformPatternWindow( _hwnd ); 1570int thread = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out process); 1581bool noModalWindow = SafeNativeMethods.EnumThreadWindows(thread, enumWindows, _hwnd); 1958return GetWindowStyle(_hwnd); 1969return GetWindowExStyle(_hwnd);