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