MS\Internal\Automation\HwndProxyElementProvider.cs (62)
97int id = Misc.GetWindowLong(_hwnd, SafeNativeMethods.GWL_ID);
116IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero );
126if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero)
132return Misc.StripMnemonic(str.ToString());
160if (!Misc.GetGUIThreadInfo(0, ref gti))
169return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(_hwnd)) ? "WinForm" : "Win32";
236if (!Misc.GetWindowRect(_hwnd, out rcW32))
314if (!Misc.GetWindowPlacement(_hwnd, ref wp))
323if (!Misc.SetWindowPlacement(_hwnd, ref wp))
344if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero))
365if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero))
387if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero))
643if (!Misc.GetWindowRect(_hwnd, out currentRect))
667if (!Misc.GetClientRect(hwndParent, out parentRect))
689if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE))
701if (!Misc.GetWindowPlacement(_hwnd, ref wp))
721if (!Misc.SetWindowPlacement(_hwnd, ref wp))
730if (!Misc.GetWindowRect(_hwnd, out currentRect))
738if (!Misc.SetWindowPlacement(_hwnd, ref wp))
747if (!Misc.GetWindowPlacement(_hwnd, ref wp))
760if (!Misc.SetWindowPlacement(_hwnd, ref wp))
794Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo);
814if (!Misc.GetWindowPlacement(_hwnd, ref wp))
826if (!Misc.SetWindowPlacement(_hwnd, ref wp))
972bool result = Misc.GetMenuBarInfo(hwnd, idObject, idItem, ref mbi);
1140hwnd = Misc.GetWindow( hwnd, dir );
1143for( ; hwnd != NativeMethods.HWND.NULL ; hwnd = Misc.GetWindow( hwnd, dir ) )
1171NativeMethods.HWND scan = Misc.GetWindow(desktop, SafeNativeMethods.GW_CHILD);
1175scan = Misc.GetWindow(scan, SafeNativeMethods.GW_HWNDLAST);
1229hwnd = Misc.GetWindow(hwndOwner, SafeNativeMethods.GW_CHILD);
1296hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD);
1318NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD);
1321hwnd = Misc.GetWindow(hwnd, SafeNativeMethods.GW_HWNDLAST);
1399for (NativeMethods.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD);
1401hChild = Misc.GetWindow(hChild, SafeNativeMethods.GW_HWNDNEXT))
1465if (!Misc.GetWindowRect(hwnd, out rcW32))
1508NativeMethods.HWND hwndOwner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER);
1592NativeMethods.HWND owner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER);
1630if (!Misc.GetGUIThreadInfo(0, ref gui))
1719IntPtr hrgn = Misc.CreateRectRgn(0, 0, 0, 0); // NOTE: Must be deleted before returning
1728for (NativeMethods.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD);
1730hChild = Misc.GetWindow(hChild, SafeNativeMethods.GW_HWNDNEXT))
1738if (!Misc.GetWindowRect(hChild, out rc))
1816IntPtr lr = Misc.SendMessageTimeout( hChild, UnsafeNativeMethods.WM_NCHITTEST, IntPtr.Zero, MAKELPARAM( (int)x, (int)y ) );
1832if (!Misc.GetWindowRect(hChild, out rcBest))
1842if (!Misc.GetWindowRect(hChild, out rcChild))
1861if (!Misc.GetClientRect(hChild, out rcClient) ||
1868Misc.DeleteObject(hrgn); // finished with region
1872Misc.DeleteObject(hrgn); // finished with region
1919Misc.ThrowWin32ExceptionsIfError(lastWin32Error);
1944Misc.ThrowWin32ExceptionsIfError(lastWin32Error);
1961int style = Misc.GetWindowLong(hwnd, SafeNativeMethods.GWL_STYLE);
1972int exstyle = Misc.GetWindowLong(hwnd, SafeNativeMethods.GWL_EXSTYLE);
1997IntPtr lresult = Misc.SendMessageTimeout(parent, UnsafeNativeMethods.WM_MDIACTIVATE, (IntPtr)hwnd, IntPtr.Zero);
2004short atom = Misc.GlobalAddAtom("FocusHotKey");
2014if( Misc.RegisterHotKey( NativeMethods.HWND.NULL, atom, 0, vk ) )
2052int result = Misc.MsgWaitForMultipleObjects(null, false, 2000, UnsafeNativeMethods.QS_ALLINPUT);
2057if (Misc.GetMessage(ref msg, NativeMethods.HWND.NULL, 0, 0) == 0)
2076Misc.UnregisterHotKey(NativeMethods.HWND.NULL, atom);
2078Misc.GlobalDeleteAtom(atom);
2090if (!Misc.GetGUIThreadInfo(0, ref gti))
2105if (Misc.GetGUIThreadInfo(0, ref gti))