8 instantiations of WindowsMenu
UIAutomationClientsideProviders (8)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
159WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 549menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu);
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
197WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 215return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 576parent = new WindowsMenu(hwndParent, null, menuParent, parentType, ownerMenuItemPos); 1629return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 1648return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 2165WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0);
62 references to WindowsMenu
UIAutomationClientsideProviders (62)
MS\Internal\AutomationProxies\Main.cs (2)
70new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.Create), "#32768"), 99new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.CreateFocusedMenuItem), "#user32focusedmenu"),
MS\Internal\AutomationProxies\Misc.cs (1)
1249bool retValue = WindowsMenu.GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi);
MS\Internal\AutomationProxies\NonClientArea.cs (7)
159WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 274if (WindowsMenu.IsInSystemMenuMode()) 535if (WindowsMenu.IsInSystemMenuMode()) 549menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 609if (WindowsMenu.IsInSystemMenuMode()) 653ProxySimple el = WindowsMenu.CreateMenuItemFromEvent(hwnd, eventId, idChild, idObject);
MS\Internal\AutomationProxies\WindowsMenu.cs (49)
197WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 210internal static WindowsMenu CreateSystemMenu (IntPtr hwnd, ProxyFragment parent) 250hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 630for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null); 632hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null)) 928return (String.Compare(Misc.ProxyGetClassName(hwnd), WindowsMenu.MenuClassName, StringComparison.OrdinalIgnoreCase) == 0); 951hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 993WindowsMenu menu = null; 1001menu = (WindowsMenu) WindowsMenu.Create (parentInfo._hwndParent, 0); 1030WindowsMenu menu = null; 1186internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1262if (_menuType == WindowsMenu.MenuType.System) 1314if (_menuType == WindowsMenu.MenuType.System) 1529(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1534if (dwDelta <= WindowsMenu.TimeOut) 1545MenuType type = ((WindowsMenu)_parent)._type; 1590if (child is WindowsMenu) 1606if (child is WindowsMenu) 1624IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu (submenu); 1628WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1643IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(submenu); 1647WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1729if (_menuType == WindowsMenu.MenuType.Toplevel) 1772if (_menuType == WindowsMenu.MenuType.Toplevel) 1960if (_menuType == WindowsMenu.MenuType.System) 2004return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu)); 2108for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null); 2110hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null)) 2160IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(hSubmenu); 2164WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2165WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0); 2197|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2199return dwDelta < WindowsMenu.TimeOut; 2226} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2252if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2287while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2293return dwDelta < WindowsMenu.TimeOut; 2353(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2359return dwDelta <= WindowsMenu.TimeOut; 2410if (_menuType == WindowsMenu.MenuType.System) 2416if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2662if (_menuType == WindowsMenu.MenuType.System) 2843internal WindowsMenu.MenuType _menuType;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
145WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 173return WindowsMenu.CreateSystemMenu (_hwnd, this);