1 write to _hmenu
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
1176_hmenu = hmenu;
29 references to _hmenu
UIAutomationClientSideProviders (29)
MS\Internal\AutomationProxies\WindowsMenu.cs (29)
1280if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1513while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 1603IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1622IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1871return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); 1886return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED); 1895if (!Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 1954if (Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 1988IntPtr submenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2140IntPtr hSubmenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2199int cItems = Misc.GetMenuItemCount(_hmenu); 2202for (item = 0; item < cItems && !Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); item++) 2337while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 2357int c = Misc.GetMenuItemCount(_hmenu); 2365if (!IsSeparator(_hmenu, i)) 2368if (Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, i, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE)) 2402(IntPtr.Zero != UnsafeNativeMethods.GetSubMenu (_hmenu, 0)) && 2403Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, 0, NativeMethods.MF_BYPOSITION), NativeMethods.MF_BITMAP)) 2508int result = UnsafeNativeMethods.GetMenuItemID(_hmenu, _item); 2540int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION); 2549if (UnsafeNativeMethods.GetMenuString(_hmenu, _item, strbldr, length + 1, NativeMethods.MF_BYPOSITION) == length) 2562if (Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 2653int state = UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION); 2667return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2680if (nextItem < Misc.GetMenuItemCount(_hmenu)) 2682return new MenuItem(_hwnd, _parent, nextItem, _hmenu, _menuType); 2718if (new MenuItem (_hwnd, this._parent, i, _hmenu, _menuType).HotKey == chHotKey)