62 references to MenuType
UIAutomationClientsideProviders (62)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
159
WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.
MenuType
.Toplevel, (int) NonClientItem.Menu);
549
menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.
MenuType
.Toplevel, (int)NonClientItem.Menu);
MS\Internal\AutomationProxies\WindowsMenu.cs (60)
51
internal WindowsMenu(IntPtr hwnd, ProxyFragment parent, IntPtr hmenu,
MenuType
type, int item)
69
case
MenuType
.Toplevel :
76
case
MenuType
.System :
90
case
MenuType
.SystemPopup :
105
case
MenuType
.Submenu :
154
if (_type ==
MenuType
.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null)
156
_type =
MenuType
.SystemPopup;
173
MenuType
type =
MenuType
.Toplevel;
215
return new WindowsMenu(hwnd, parent, hSysMenu,
MenuType
.System, 1);
391
if (_parent != null && _type ==
MenuType
.Submenu)
554
MenuType
currentType = GetSubMenuType(hwnd, menu);
555
MenuType
parentType =
MenuType
.Toplevel;
557
if (currentType ==
MenuType
.Submenu)
565
if (parentType ==
MenuType
.Toplevel)
588
private static bool GetSubMenuParent (IntPtr hwndMenu, out IntPtr menuParent, out IntPtr hwndParent, out int ownerMenuItemPos, out
MenuType
parentType)
594
parentType =
MenuType
.Toplevel;
623
parentType =
MenuType
.Toplevel;
678
internal static
MenuType
GetSubMenuType (IntPtr hwnd, IntPtr hMenu)
682
return
MenuType
.SystemPopup;
687
return
MenuType
.Submenu;
690
return
MenuType
.Context;
718
if (_type ==
MenuType
.System)
811
case
MenuType
.System:
844
case
MenuType
.Toplevel:
865
case
MenuType
.Toplevel:
868
case
MenuType
.System:
871
case
MenuType
.SystemPopup:
874
case
MenuType
.Submenu:
995
if (parentInfo._type ==
MenuType
.System)
1031
if (parentInfo._type ==
MenuType
.System)
1127
private
MenuType
_type;
1155
internal
MenuType
_type; // type of the menu on which menuItem lives
1157
internal MenuParentInfo (IntPtr hwndParent, int menuItem,
MenuType
type)
1186
internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.
MenuType
type)
1262
if (_menuType == WindowsMenu.
MenuType
.System)
1314
if (_menuType == WindowsMenu.
MenuType
.System)
1457
if ((_menuType ==
MenuType
.Toplevel || _menuType ==
MenuType
.System))
1545
MenuType
type = ((WindowsMenu)_parent)._type;
1549
case
MenuType
.System:
1553
case
MenuType
.Submenu:
1554
case
MenuType
.SystemPopup:
1618
IntPtr submenu = _menuType ==
MenuType
.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item);
1628
WindowsMenu.
MenuType
type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu);
1637
IntPtr submenu = _menuType ==
MenuType
.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item);
1647
WindowsMenu.
MenuType
type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu);
1729
if (_menuType == WindowsMenu.
MenuType
.Toplevel)
1772
if (_menuType == WindowsMenu.
MenuType
.Toplevel)
1960
if (_menuType == WindowsMenu.
MenuType
.System)
2164
WindowsMenu.
MenuType
type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu);
2252
if (_menuType == WindowsMenu.
MenuType
.Submenu || _menuType == WindowsMenu.
MenuType
.Context || _menuType == WindowsMenu.
MenuType
.SystemPopup)
2324
if (this._menuType ==
MenuType
.Toplevel)
2410
if (_menuType == WindowsMenu.
MenuType
.System)
2416
if (_item == 0 && _menuType == WindowsMenu.
MenuType
.Toplevel &&
2662
if (_menuType == WindowsMenu.
MenuType
.System)
2843
internal WindowsMenu.
MenuType
_menuType;