62 references to MenuType
UIAutomationClientSideProviders (62)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
151WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 541menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu);
MS\Internal\AutomationProxies\WindowsMenu.cs (60)
34internal WindowsMenu(IntPtr hwnd, ProxyFragment parent, IntPtr hmenu, MenuType type, int item) 52case MenuType.Toplevel : 59case MenuType.System : 73case MenuType.SystemPopup : 88case MenuType.Submenu : 137if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 139_type = MenuType.SystemPopup; 156MenuType type = MenuType.Toplevel; 198return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 374if (_parent != null && _type == MenuType.Submenu) 537MenuType currentType = GetSubMenuType(hwnd, menu); 538MenuType parentType = MenuType.Toplevel; 540if (currentType == MenuType.Submenu) 548if (parentType == MenuType.Toplevel) 571private static bool GetSubMenuParent (IntPtr hwndMenu, out IntPtr menuParent, out IntPtr hwndParent, out int ownerMenuItemPos, out MenuType parentType) 577parentType = MenuType.Toplevel; 606parentType = MenuType.Toplevel; 661internal static MenuType GetSubMenuType (IntPtr hwnd, IntPtr hMenu) 665return MenuType.SystemPopup; 670return MenuType.Submenu; 673return MenuType.Context; 701if (_type == MenuType.System) 794case MenuType.System: 827case MenuType.Toplevel: 848case MenuType.Toplevel: 851case MenuType.System: 854case MenuType.SystemPopup: 857case MenuType.Submenu: 977if (parentInfo._type == MenuType.System) 1012if (parentInfo._type == MenuType.System) 1108private MenuType _type; 1136internal MenuType _type; // type of the menu on which menuItem lives 1138internal MenuParentInfo (IntPtr hwndParent, int menuItem, MenuType type) 1167internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1243if (_menuType == WindowsMenu.MenuType.System) 1293if (_menuType == WindowsMenu.MenuType.System) 1436if ((_menuType == MenuType.Toplevel || _menuType == MenuType.System)) 1524MenuType type = ((WindowsMenu)_parent)._type; 1528case MenuType.System: 1532case MenuType.Submenu: 1533case MenuType.SystemPopup: 1597IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1607WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1616IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1626WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1708if (_menuType == WindowsMenu.MenuType.Toplevel) 1751if (_menuType == WindowsMenu.MenuType.Toplevel) 1939if (_menuType == WindowsMenu.MenuType.System) 2143WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2231if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2303if (this._menuType == MenuType.Toplevel) 2389if (_menuType == WindowsMenu.MenuType.System) 2395if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2641if (_menuType == WindowsMenu.MenuType.System) 2822internal WindowsMenu.MenuType _menuType;