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