1 write to _hwnd
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
63_hwnd = hwnd;
69 references to _hwnd
UIAutomationClient (69)
MS\Internal\Automation\HwndProxyElementProvider.cs (69)
109if(IsTopLevelWindow(_hwnd)) 114int id = Misc.GetWindowLong(_hwnd, SafeNativeMethods.GWL_ID); 126return ProxyManager.GetClassName( _hwnd ); 133IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero ); 143if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero) 153return IsWindowReallyEnabled( _hwnd ); 163if (SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid) == 0) 173return ((IntPtr) _hwnd).ToInt32(); 184return (gti.hwndFocus == _hwnd) || (SafeNativeMethods.IsChild(_hwnd, gti.hwndFocus)); 188return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(_hwnd)) ? "WinForm" : "Win32"; 192if (IsWindowPatternWindow(_hwnd)) 237return HwndProxyElementProvider.MakeRuntimeId(_hwnd); 248if (IsTopLevelWindow(_hwnd) && SafeNativeMethods.IsIconic(_hwnd)) 254if (!Misc.GetWindowRect(_hwnd, out rcW32)) 265GetAllUIFragmentRoots(_hwnd, false, embeddedRoots); 271SetFocus(_hwnd); 288return ElementProviderFromPoint(_hwnd, x, y); 308if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 331if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 340if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 361if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero)) 382if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero)) 404if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero)) 433int guiThreadId = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out pid); 543if (!SafeNativeMethods.IsWindow(_hwnd)) 552NativeMethods.HWND hwndOwner = GetRealOwner( _hwnd ); 596IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult); 602if ( SafeNativeMethods.IsWindow( _hwnd ) ) 657NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT); 667if (!Misc.GetWindowRect(_hwnd, out currentRect)) 713if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE)) 723if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 743if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 752if (!Misc.GetWindowRect(_hwnd, out currentRect)) 760if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 770if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 783if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 793if ( !SafeNativeMethods.IsWindow( _hwnd ) ) 817Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo); 835if (!Misc.GetWindowPlacement(_hwnd, ref wp)) 847if (!Misc.SetWindowPlacement(_hwnd, ref wp)) 855if (!SafeNativeMethods.IsWindow(_hwnd)) 948if (!SafeNativeMethods.IsWindow(_hwnd)) 1015if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 1215NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1220NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1234if (!IsWindowReallyVisible(_hwnd)) 1240if (IsTopLevelWindow(_hwnd)) 1242NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1246NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanNext, ExcludeSelf, hwndOwner); 1260NativeMethods.HWND next = ScanVisible(_hwnd, ScanNext, ExcludeSelf, NativeMethods.HWND.NULL); 1267if (!IsWindowReallyVisible(_hwnd)) 1273if (IsTopLevelWindow(_hwnd)) 1275NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1280NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, hwndOwner); 1287NativeMethods.HWND prev = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, NativeMethods.HWND.NULL); 1292NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1313NativeMethods.HWND hwnd = GetFirstOrLastOwnedWindow(_hwnd, true); 1317hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1339NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1350hwnd = GetFirstOrLastOwnedWindow(_hwnd, false); 1545_windowPattern = IsWindowPatternWindow(_hwnd); 1565_transformPattern = IsTransformPatternWindow( _hwnd ); 1581int thread = SafeNativeMethods.GetWindowThreadProcessId(_hwnd, out process); 1592bool noModalWindow = SafeNativeMethods.EnumThreadWindows(thread, enumWindows, _hwnd); 1969return GetWindowStyle(_hwnd); 1980return GetWindowExStyle(_hwnd);