62 references to MenuType
UIAutomationClientSideProviders (62)
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 (60)
35internal WindowsMenu(IntPtr hwnd, ProxyFragment parent, IntPtr hmenu, MenuType type, int item) 53case MenuType.Toplevel : 60case MenuType.System : 74case MenuType.SystemPopup : 89case MenuType.Submenu : 138if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 140_type = MenuType.SystemPopup; 157MenuType type = MenuType.Toplevel; 199return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 375if (_parent != null && _type == MenuType.Submenu) 538MenuType currentType = GetSubMenuType(hwnd, menu); 539MenuType parentType = MenuType.Toplevel; 541if (currentType == MenuType.Submenu) 549if (parentType == MenuType.Toplevel) 572private static bool GetSubMenuParent (IntPtr hwndMenu, out IntPtr menuParent, out IntPtr hwndParent, out int ownerMenuItemPos, out MenuType parentType) 578parentType = MenuType.Toplevel; 607parentType = MenuType.Toplevel; 662internal static MenuType GetSubMenuType (IntPtr hwnd, IntPtr hMenu) 666return MenuType.SystemPopup; 671return MenuType.Submenu; 674return MenuType.Context; 702if (_type == MenuType.System) 795case MenuType.System: 828case MenuType.Toplevel: 849case MenuType.Toplevel: 852case MenuType.System: 855case MenuType.SystemPopup: 858case MenuType.Submenu: 978if (parentInfo._type == MenuType.System) 1013if (parentInfo._type == MenuType.System) 1109private MenuType _type; 1137internal MenuType _type; // type of the menu on which menuItem lives 1139internal MenuParentInfo (IntPtr hwndParent, int menuItem, MenuType type) 1168internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1244if (_menuType == WindowsMenu.MenuType.System) 1294if (_menuType == WindowsMenu.MenuType.System) 1437if ((_menuType == MenuType.Toplevel || _menuType == MenuType.System)) 1525MenuType type = ((WindowsMenu)_parent)._type; 1529case MenuType.System: 1533case MenuType.Submenu: 1534case MenuType.SystemPopup: 1598IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1608WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1617IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1627WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1709if (_menuType == WindowsMenu.MenuType.Toplevel) 1752if (_menuType == WindowsMenu.MenuType.Toplevel) 1940if (_menuType == WindowsMenu.MenuType.System) 2144WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2232if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2304if (this._menuType == MenuType.Toplevel) 2390if (_menuType == WindowsMenu.MenuType.System) 2396if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2642if (_menuType == WindowsMenu.MenuType.System) 2823internal WindowsMenu.MenuType _menuType;