示例#1
0
        public static uint GetMenuItemReferenceConstant(HIMenuItem item)
        {
            uint val;

            CheckResult(GetMenuItemRefCon(item.MenuRef, item.Index, out val));
            return(val);
        }
示例#2
0
        public static uint GetMenuItemCommandID(HIMenuItem item)
        {
            uint id;

            CheckResult(GetMenuItemCommandID(item.MenuRef, item.Index, out id));
            return(id);
        }
示例#3
0
 public CarbonHICommand(uint commandID, HIMenuItem item)
 {
     windowRef       = controlRef = IntPtr.Zero;
     this.commandID  = commandID;
     this.menuItem   = item;
     this.attributes = CarbonHICommandAttributes.FromMenu;
 }
示例#4
0
 public static void SetMenuItemReferenceConstant(HIMenuItem item, uint value)
 {
     CheckResult(SetMenuItemRefCon(item.MenuRef, item.Index, value));
 }
示例#5
0
 public static void ChangeMenuItemAttributes(HIMenuItem item, MenuItemAttributes toSet, MenuItemAttributes toClear)
 {
     CheckResult(ChangeMenuItemAttributes(item.MenuRef, item.Index, toSet, toClear));
 }
示例#6
0
 public static void DisableMenuItem(HIMenuItem item)
 {
     CheckResult(DisableMenuItem(item.MenuRef, item.Index));
 }