8 instantiations of WindowsMenu
UIAutomationClientSideProviders (8)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
152WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 542menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu);
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
181WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 199return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 560parent = new WindowsMenu(hwndParent, null, menuParent, parentType, ownerMenuItemPos); 1609return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 1628return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 2145WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0);
62 references to WindowsMenu
UIAutomationClientSideProviders (62)
MS\Internal\AutomationProxies\Main.cs (2)
59new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.Create), "#32768"), 88new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.CreateFocusedMenuItem), "#user32focusedmenu"),
MS\Internal\AutomationProxies\Misc.cs (1)
1229bool retValue = WindowsMenu.GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi);
MS\Internal\AutomationProxies\NonClientArea.cs (7)
152WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 267if (WindowsMenu.IsInSystemMenuMode()) 528if (WindowsMenu.IsInSystemMenuMode()) 542menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 602if (WindowsMenu.IsInSystemMenuMode()) 646ProxySimple el = WindowsMenu.CreateMenuItemFromEvent(hwnd, eventId, idChild, idObject);
MS\Internal\AutomationProxies\WindowsMenu.cs (49)
181WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 194internal static WindowsMenu CreateSystemMenu (IntPtr hwnd, ProxyFragment parent) 234hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 614for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null); 616hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null)) 912return string.Equals(Misc.ProxyGetClassName(hwnd), WindowsMenu.MenuClassName, StringComparison.OrdinalIgnoreCase); 934hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 976WindowsMenu menu = null; 984menu = (WindowsMenu) WindowsMenu.Create (parentInfo._hwndParent, 0); 1012WindowsMenu menu = null; 1168internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1244if (_menuType == WindowsMenu.MenuType.System) 1294if (_menuType == WindowsMenu.MenuType.System) 1509(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1514if (dwDelta <= WindowsMenu.TimeOut) 1525MenuType type = ((WindowsMenu)_parent)._type; 1570if (child is WindowsMenu) 1586if (child is WindowsMenu) 1604IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu (submenu); 1608WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1623IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(submenu); 1627WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1709if (_menuType == WindowsMenu.MenuType.Toplevel) 1752if (_menuType == WindowsMenu.MenuType.Toplevel) 1940if (_menuType == WindowsMenu.MenuType.System) 1984return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu)); 2088for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null); 2090hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null)) 2140IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(hSubmenu); 2144WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2145WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0); 2177|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2179return dwDelta < WindowsMenu.TimeOut; 2206} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2232if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2267while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2273return dwDelta < WindowsMenu.TimeOut; 2333(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2339return dwDelta <= WindowsMenu.TimeOut; 2390if (_menuType == WindowsMenu.MenuType.System) 2396if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2642if (_menuType == WindowsMenu.MenuType.System) 2823internal WindowsMenu.MenuType _menuType;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
133WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 161return WindowsMenu.CreateSystemMenu (_hwnd, this);