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