62 references to MenuType
UIAutomationClientSideProviders (62)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
158WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 548menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu);
MS\Internal\AutomationProxies\WindowsMenu.cs (60)
38internal WindowsMenu(IntPtr hwnd, ProxyFragment parent, IntPtr hmenu, MenuType type, int item) 56case MenuType.Toplevel : 63case MenuType.System : 77case MenuType.SystemPopup : 92case MenuType.Submenu : 141if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 143_type = MenuType.SystemPopup; 160MenuType type = MenuType.Toplevel; 202return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 378if (_parent != null && _type == MenuType.Submenu) 541MenuType currentType = GetSubMenuType(hwnd, menu); 542MenuType parentType = MenuType.Toplevel; 544if (currentType == MenuType.Submenu) 552if (parentType == MenuType.Toplevel) 575private static bool GetSubMenuParent (IntPtr hwndMenu, out IntPtr menuParent, out IntPtr hwndParent, out int ownerMenuItemPos, out MenuType parentType) 581parentType = MenuType.Toplevel; 610parentType = MenuType.Toplevel; 665internal static MenuType GetSubMenuType (IntPtr hwnd, IntPtr hMenu) 669return MenuType.SystemPopup; 674return MenuType.Submenu; 677return MenuType.Context; 705if (_type == MenuType.System) 798case MenuType.System: 831case MenuType.Toplevel: 852case MenuType.Toplevel: 855case MenuType.System: 858case MenuType.SystemPopup: 861case MenuType.Submenu: 981if (parentInfo._type == MenuType.System) 1016if (parentInfo._type == MenuType.System) 1112private MenuType _type; 1140internal MenuType _type; // type of the menu on which menuItem lives 1142internal MenuParentInfo (IntPtr hwndParent, int menuItem, MenuType type) 1171internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1247if (_menuType == WindowsMenu.MenuType.System) 1299if (_menuType == WindowsMenu.MenuType.System) 1442if ((_menuType == MenuType.Toplevel || _menuType == MenuType.System)) 1530MenuType type = ((WindowsMenu)_parent)._type; 1534case MenuType.System: 1538case MenuType.Submenu: 1539case MenuType.SystemPopup: 1603IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1613WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1622IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1632WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1714if (_menuType == WindowsMenu.MenuType.Toplevel) 1757if (_menuType == WindowsMenu.MenuType.Toplevel) 1945if (_menuType == WindowsMenu.MenuType.System) 2149WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2237if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2309if (this._menuType == MenuType.Toplevel) 2395if (_menuType == WindowsMenu.MenuType.System) 2401if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2647if (_menuType == WindowsMenu.MenuType.System) 2828internal WindowsMenu.MenuType _menuType;