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