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