1 write to _hmenu
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
1173
_hmenu
= hmenu;
29 references to _hmenu
UIAutomationClientSideProviders (29)
MS\Internal\AutomationProxies\WindowsMenu.cs (29)
1275
if (Misc.GetMenuItemRect(_hwnd,
_hmenu
, _item, out rc))
1508
while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
1598
IntPtr submenu = _menuType == MenuType.System ?
_hmenu
: UnsafeNativeMethods.GetSubMenu (
_hmenu
, _item);
1617
IntPtr submenu = _menuType == MenuType.System ?
_hmenu
: UnsafeNativeMethods.GetSubMenu (
_hmenu
, _item);
1866
return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE);
1881
return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED);
1890
if (!Misc.GetMenuItemInfo(
_hmenu
, _item, true, ref menuItemInfo))
1949
if (Misc.GetMenuItemInfo(
_hmenu
, _item, true, ref menuItemInfo))
1983
IntPtr submenu = UnsafeNativeMethods.GetSubMenu(
_hmenu
, _item);
2135
IntPtr hSubmenu = UnsafeNativeMethods.GetSubMenu(
_hmenu
, _item);
2194
int cItems = Misc.GetMenuItemCount(
_hmenu
);
2197
for (item = 0; item < cItems && !Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); item++)
2332
while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
2352
int c = Misc.GetMenuItemCount(
_hmenu
);
2360
if (!IsSeparator(
_hmenu
, i))
2363
if (Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, i, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE))
2397
(IntPtr.Zero != UnsafeNativeMethods.GetSubMenu (
_hmenu
, 0)) &&
2398
Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(
_hmenu
, 0, NativeMethods.MF_BYPOSITION), NativeMethods.MF_BITMAP))
2503
int result = UnsafeNativeMethods.GetMenuItemID(
_hmenu
, _item);
2535
int length = UnsafeNativeMethods.GetMenuString(
_hmenu
, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION);
2544
if (UnsafeNativeMethods.GetMenuString(
_hmenu
, _item, strbldr, length + 1, NativeMethods.MF_BYPOSITION) == length)
2557
if (Misc.GetMenuItemInfo(
_hmenu
, _item, true, ref menuItemInfo))
2648
int state = UnsafeNativeMethods.GetMenuState(
_hmenu
, _item, NativeMethods.MF_BYPOSITION);
2662
return new MenuItem(_hwnd, _parent, _item - 1,
_hmenu
, _menuType);
2675
if (nextItem < Misc.GetMenuItemCount(
_hmenu
))
2677
return new MenuItem(_hwnd, _parent, nextItem,
_hmenu
, _menuType);
2713
if (new MenuItem (_hwnd, this._parent, i,
_hmenu
, _menuType).HotKey == chHotKey)