MS\Internal\Automation\HwndProxyElementProvider.cs (62)
98int id = Misc.GetWindowLong(_hwnd, SafeNativeMethods.GWL_ID);
117IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero );
127if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero)
133return Misc.StripMnemonic(str.ToString());
161if (!Misc.GetGUIThreadInfo(0, ref gti))
170return Misc.IsWindowsFormsControl(ProxyManager.GetClassName(_hwnd)) ? "WinForm" : "Win32";
237if (!Misc.GetWindowRect(_hwnd, out rcW32))
315if (!Misc.GetWindowPlacement(_hwnd, ref wp))
324if (!Misc.SetWindowPlacement(_hwnd, ref wp))
345if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero))
366if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero))
388if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero))
644if (!Misc.GetWindowRect(_hwnd, out currentRect))
668if (!Misc.GetClientRect(hwndParent, out parentRect))
690if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE))
702if (!Misc.GetWindowPlacement(_hwnd, ref wp))
722if (!Misc.SetWindowPlacement(_hwnd, ref wp))
731if (!Misc.GetWindowRect(_hwnd, out currentRect))
739if (!Misc.SetWindowPlacement(_hwnd, ref wp))
748if (!Misc.GetWindowPlacement(_hwnd, ref wp))
761if (!Misc.SetWindowPlacement(_hwnd, ref wp))
795Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo);
815if (!Misc.GetWindowPlacement(_hwnd, ref wp))
827if (!Misc.SetWindowPlacement(_hwnd, ref wp))
973bool result = Misc.GetMenuBarInfo(hwnd, idObject, idItem, ref mbi);
1141hwnd = Misc.GetWindow( hwnd, dir );
1144for( ; hwnd != NativeMethods.HWND.NULL ; hwnd = Misc.GetWindow( hwnd, dir ) )
1172NativeMethods.HWND scan = Misc.GetWindow(desktop, SafeNativeMethods.GW_CHILD);
1176scan = Misc.GetWindow(scan, SafeNativeMethods.GW_HWNDLAST);
1230hwnd = Misc.GetWindow(hwndOwner, SafeNativeMethods.GW_CHILD);
1297hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD);
1319NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD);
1322hwnd = Misc.GetWindow(hwnd, SafeNativeMethods.GW_HWNDLAST);
1400for (NativeMethods.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD);
1402hChild = Misc.GetWindow(hChild, SafeNativeMethods.GW_HWNDNEXT))
1466if (!Misc.GetWindowRect(hwnd, out rcW32))
1509NativeMethods.HWND hwndOwner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER);
1593NativeMethods.HWND owner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER);
1631if (!Misc.GetGUIThreadInfo(0, ref gui))
1720IntPtr hrgn = Misc.CreateRectRgn(0, 0, 0, 0); // NOTE: Must be deleted before returning
1729for (NativeMethods.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD);
1731hChild = Misc.GetWindow(hChild, SafeNativeMethods.GW_HWNDNEXT))
1739if (!Misc.GetWindowRect(hChild, out rc))
1817IntPtr lr = Misc.SendMessageTimeout( hChild, UnsafeNativeMethods.WM_NCHITTEST, IntPtr.Zero, MAKELPARAM( (int)x, (int)y ) );
1833if (!Misc.GetWindowRect(hChild, out rcBest))
1843if (!Misc.GetWindowRect(hChild, out rcChild))
1862if (!Misc.GetClientRect(hChild, out rcClient) ||
1869Misc.DeleteObject(hrgn); // finished with region
1873Misc.DeleteObject(hrgn); // finished with region
1920Misc.ThrowWin32ExceptionsIfError(lastWin32Error);
1945Misc.ThrowWin32ExceptionsIfError(lastWin32Error);
1962int style = Misc.GetWindowLong(hwnd, SafeNativeMethods.GWL_STYLE);
1973int exstyle = Misc.GetWindowLong(hwnd, SafeNativeMethods.GWL_EXSTYLE);
1998IntPtr lresult = Misc.SendMessageTimeout(parent, UnsafeNativeMethods.WM_MDIACTIVATE, (IntPtr)hwnd, IntPtr.Zero);
2005short atom = Misc.GlobalAddAtom("FocusHotKey");
2015if( Misc.RegisterHotKey( NativeMethods.HWND.NULL, atom, 0, vk ) )
2053int result = Misc.MsgWaitForMultipleObjects(null, false, 2000, UnsafeNativeMethods.QS_ALLINPUT);
2058if (Misc.GetMessage(ref msg, NativeMethods.HWND.NULL, 0, 0) == 0)
2077Misc.UnregisterHotKey(NativeMethods.HWND.NULL, atom);
2079Misc.GlobalDeleteAtom(atom);
2091if (!Misc.GetGUIThreadInfo(0, ref gti))
2106if (Misc.GetGUIThreadInfo(0, ref gti))