8 instantiations of WindowsMenu
UIAutomationClientSideProviders (8)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
158WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 548menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu);
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
184WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 202return new WindowsMenu(hwnd, parent, hSysMenu, MenuType.System, 1); 563parent = new WindowsMenu(hwndParent, null, menuParent, parentType, ownerMenuItemPos); 1614return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 1633return new WindowsMenu (hwndSubmenu, null, submenu, type, 0); 2150WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0);
62 references to WindowsMenu
UIAutomationClientSideProviders (62)
MS\Internal\AutomationProxies\Main.cs (2)
59new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.Create), "#32768"), 88new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.CreateFocusedMenuItem), "#user32focusedmenu"),
MS\Internal\AutomationProxies\Misc.cs (1)
1236bool retValue = WindowsMenu.GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi);
MS\Internal\AutomationProxies\NonClientArea.cs (7)
158WindowsMenu appMenu = new WindowsMenu(hwnd, nonClientArea, menu, WindowsMenu.MenuType.Toplevel, (int) NonClientItem.Menu); 273if (WindowsMenu.IsInSystemMenuMode()) 534if (WindowsMenu.IsInSystemMenuMode()) 548menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 608if (WindowsMenu.IsInSystemMenuMode()) 652ProxySimple el = WindowsMenu.CreateMenuItemFromEvent(hwnd, eventId, idChild, idObject);
MS\Internal\AutomationProxies\WindowsMenu.cs (49)
184WindowsMenu windowsMenu = new WindowsMenu(hwnd, null, hmenu, type, 0); 197internal static WindowsMenu CreateSystemMenu (IntPtr hwnd, ProxyFragment parent) 237hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 617for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null); 619hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null)) 915return string.Equals(Misc.ProxyGetClassName(hwnd), WindowsMenu.MenuClassName, StringComparison.OrdinalIgnoreCase); 937hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 979WindowsMenu menu = null; 987menu = (WindowsMenu) WindowsMenu.Create (parentInfo._hwndParent, 0); 1015WindowsMenu menu = null; 1171internal MenuItem (IntPtr hwnd, ProxyFragment parent, int item, IntPtr hmenu, WindowsMenu.MenuType type) 1247if (_menuType == WindowsMenu.MenuType.System) 1299if (_menuType == WindowsMenu.MenuType.System) 1514(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1519if (dwDelta <= WindowsMenu.TimeOut) 1530MenuType type = ((WindowsMenu)_parent)._type; 1575if (child is WindowsMenu) 1591if (child is WindowsMenu) 1609IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu (submenu); 1613WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1628IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(submenu); 1632WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType (hwndSubmenu, submenu); 1714if (_menuType == WindowsMenu.MenuType.Toplevel) 1757if (_menuType == WindowsMenu.MenuType.Toplevel) 1945if (_menuType == WindowsMenu.MenuType.System) 1989return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu)); 2093for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null); 2095hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null)) 2145IntPtr hwndSubmenu = WindowsMenu.WindowFromSubmenu(hSubmenu); 2149WindowsMenu.MenuType type = WindowsMenu.GetSubMenuType(hwndSubmenu, hSubmenu); 2150WindowsMenu parent = new WindowsMenu(hwndSubmenu, null, hSubmenu, type, 0); 2182|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2184return dwDelta < WindowsMenu.TimeOut; 2211} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2237if (_menuType == WindowsMenu.MenuType.Submenu || _menuType == WindowsMenu.MenuType.Context || _menuType == WindowsMenu.MenuType.SystemPopup) 2272while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2278return dwDelta < WindowsMenu.TimeOut; 2338(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2344return dwDelta <= WindowsMenu.TimeOut; 2395if (_menuType == WindowsMenu.MenuType.System) 2401if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2647if (_menuType == WindowsMenu.MenuType.System) 2828internal WindowsMenu.MenuType _menuType;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
133WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 161return WindowsMenu.CreateSystemMenu (_hwnd, this);