8 instantiations of WindowsMenu
UIAutomationClientSideProviders (8)
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 (6)
180WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 198return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 559parent = new WindowsMenu(hwndParent, null, menuParent, parentType, ownerMenuItemPos); 1608return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 1627return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 2144WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0);
62 references to WindowsMenu
UIAutomationClientSideProviders (62)
MS\Internal\AutomationProxies\Main.cs (2)
58new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.Create), "#32768"), 87new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.CreateFocusedMenuItem), "#user32focusedmenu"),
MS\Internal\AutomationProxies\Misc.cs (1)
1228bool retValue = WindowsMenu.GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi);
MS\Internal\AutomationProxies\NonClientArea.cs (7)
151WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 266if (WindowsMenu.IsInSystemMenuMode()) 527if (WindowsMenu.IsInSystemMenuMode()) 541menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 601if (WindowsMenu.IsInSystemMenuMode()) 645ProxySimple el = WindowsMenu.CreateMenuItemFromEvent(hwnd, eventId, idChild, idObject);
MS\Internal\AutomationProxies\WindowsMenu.cs (49)
180WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 193internal static WindowsMenu CreateSystemMenu (IntPtr hwnd, ProxyFragment parent) 233hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 613for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null); 615hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null)) 911return string.Equals(Misc.ProxyGetClassName(hwnd), WindowsMenu.MenuClassName, StringComparison.OrdinalIgnoreCase); 933hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 975WindowsMenu menu = null; 983menu = (WindowsMenu) WindowsMenu.Create (parentInfo._hwndParent, 0); 1011WindowsMenu menu = null; 1167internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1243if (_menuType == WindowsMenu.MenuType.System) 1293if (_menuType == WindowsMenu.MenuType.System) 1508(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1513if (dwDelta <= WindowsMenu.TimeOut) 1524MenuType type = ((WindowsMenu)_parent)._type; 1569if (child is WindowsMenu) 1585if (child is WindowsMenu) 1603IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu (submenu); 1607WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1622IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(submenu); 1626WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1708if (_menuType == WindowsMenu.MenuType.Toplevel) 1751if (_menuType == WindowsMenu.MenuType.Toplevel) 1939if (_menuType == WindowsMenu.MenuType.System) 1983return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu)); 2087for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null); 2089hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null)) 2139IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(hSubmenu); 2143WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2144WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0); 2176|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2178return dwDelta < WindowsMenu.TimeOut; 2205} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2231if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2266while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2272return dwDelta < WindowsMenu.TimeOut; 2332(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2338return dwDelta <= WindowsMenu.TimeOut; 2389if (_menuType == WindowsMenu.MenuType.System) 2395if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2641if (_menuType == WindowsMenu.MenuType.System) 2822internal WindowsMenu.MenuType _menuType;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
132WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 160return WindowsMenu.CreateSystemMenu (_hwnd, this);