1 write to _hwnd
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
46
_hwnd
= hwnd;
69 references to _hwnd
UIAutomationClient (69)
MS\Internal\Automation\HwndProxyElementProvider.cs (69)
92
if(IsTopLevelWindow(
_hwnd
))
97
int id = Misc.GetWindowLong(
_hwnd
, SafeNativeMethods.GWL_ID);
109
return ProxyManager.GetClassName(
_hwnd
);
116
IntPtr len = Misc.SendMessageTimeout(
_hwnd
, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero );
126
if (Misc.SendMessageTimeout(
_hwnd
, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero)
136
return IsWindowReallyEnabled(
_hwnd
);
144
if (SafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out pid) == 0)
154
return ((IntPtr)
_hwnd
).ToInt32();
165
return (gti.hwndFocus ==
_hwnd
) || (SafeNativeMethods.IsChild(
_hwnd
, gti.hwndFocus));
169
return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(
_hwnd
)) ? "WinForm" : "Win32";
173
if (IsWindowPatternWindow(
_hwnd
))
219
return HwndProxyElementProvider.MakeRuntimeId(
_hwnd
);
230
if (IsTopLevelWindow(
_hwnd
) && SafeNativeMethods.IsIconic(
_hwnd
))
236
if (!Misc.GetWindowRect(
_hwnd
, out rcW32))
247
GetAllUIFragmentRoots(
_hwnd
, false, embeddedRoots);
253
SetFocus(
_hwnd
);
270
return ElementProviderFromPoint(
_hwnd
, x, y);
290
if ( !SafeNativeMethods.IsWindow(
_hwnd
) )
314
if (!Misc.GetWindowPlacement(
_hwnd
, ref wp))
323
if (!Misc.SetWindowPlacement(
_hwnd
, ref wp))
344
if (!Misc.PostMessage(
_hwnd
, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero))
365
if (!Misc.PostMessage(
_hwnd
, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero))
387
if (!Misc.PostMessage(
_hwnd
, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero))
413
int guiThreadId = SafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out pid);
523
if (!SafeNativeMethods.IsWindow(
_hwnd
))
530
NativeMethods.HWND hwndOwner = GetRealOwner(
_hwnd
);
572
IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(
_hwnd
, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult);
578
if ( SafeNativeMethods.IsWindow(
_hwnd
) )
633
NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(
_hwnd
), SafeNativeMethods.GA_PARENT);
643
if (!Misc.GetWindowRect(
_hwnd
, out currentRect))
689
if (!Misc.SetWindowPos(
_hwnd
, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE))
701
if (!Misc.GetWindowPlacement(
_hwnd
, ref wp))
721
if (!Misc.SetWindowPlacement(
_hwnd
, ref wp))
730
if (!Misc.GetWindowRect(
_hwnd
, out currentRect))
738
if (!Misc.SetWindowPlacement(
_hwnd
, ref wp))
747
if (!Misc.GetWindowPlacement(
_hwnd
, ref wp))
760
if (!Misc.SetWindowPlacement(
_hwnd
, ref wp))
770
if ( !SafeNativeMethods.IsWindow(
_hwnd
) )
794
Misc.SendMessageTimeout(
_hwnd
, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo);
814
if (!Misc.GetWindowPlacement(
_hwnd
, ref wp))
826
if (!Misc.SetWindowPlacement(
_hwnd
, ref wp))
834
if (!SafeNativeMethods.IsWindow(
_hwnd
))
927
if (!SafeNativeMethods.IsWindow(
_hwnd
))
994
if (GetMenuBarInfo(
_hwnd
, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero)
1194
NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(
_hwnd
, SafeNativeMethods.GA_PARENT);
1199
NativeMethods.HWND hwndOwner = GetRealOwner(
_hwnd
);
1213
if (!IsWindowReallyVisible(
_hwnd
))
1219
if (IsTopLevelWindow(
_hwnd
))
1221
NativeMethods.HWND hwndOwner = GetRealOwner(
_hwnd
);
1225
NativeMethods.HWND hwnd = ScanVisible(
_hwnd
, ScanNext, ExcludeSelf, hwndOwner);
1239
NativeMethods.HWND next = ScanVisible(
_hwnd
, ScanNext, ExcludeSelf, NativeMethods.HWND.NULL);
1246
if (!IsWindowReallyVisible(
_hwnd
))
1252
if (IsTopLevelWindow(
_hwnd
))
1254
NativeMethods.HWND hwndOwner = GetRealOwner(
_hwnd
);
1259
NativeMethods.HWND hwnd = ScanVisible(
_hwnd
, ScanPrev, ExcludeSelf, hwndOwner);
1266
NativeMethods.HWND prev = ScanVisible(
_hwnd
, ScanPrev, ExcludeSelf, NativeMethods.HWND.NULL);
1271
NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(
_hwnd
, SafeNativeMethods.GA_PARENT);
1292
NativeMethods.HWND hwnd = GetFirstOrLastOwnedWindow(
_hwnd
, true);
1296
hwnd = Misc.GetWindow(
_hwnd
, SafeNativeMethods.GW_CHILD);
1318
NativeMethods.HWND hwnd = Misc.GetWindow(
_hwnd
, SafeNativeMethods.GW_CHILD);
1329
hwnd = GetFirstOrLastOwnedWindow(
_hwnd
, false);
1535
_windowPattern = IsWindowPatternWindow(
_hwnd
);
1555
_transformPattern = IsTransformPatternWindow(
_hwnd
);
1569
int thread = SafeNativeMethods.GetWindowThreadProcessId(
_hwnd
, out process);
1580
bool noModalWindow = SafeNativeMethods.EnumThreadWindows(thread, enumWindows,
_hwnd
);
1957
return GetWindowStyle(
_hwnd
);
1968
return GetWindowExStyle(
_hwnd
);