Esempio n. 1
0
        public static MENUITEMINFO New(string text)
        {
            MENUITEMINFO ret = new MENUITEMINFO();

            ret.cbSize        = sizeOf;
            ret.dwTypeData    = text;
            ret.cch           = (uint)text.Length;
            ret.fMask         = 0;
            ret.fType         = 0;
            ret.fState        = 0;
            ret.wID           = 0;
            ret.hSubMenu      = IntPtr.Zero;
            ret.hbmpChecked   = IntPtr.Zero;
            ret.hbmpUnchecked = IntPtr.Zero;
            ret.dwItemData    = IntPtr.Zero;
            ret.hbmpItem      = IntPtr.Zero;
            return(ret);
        }
Esempio n. 2
0
 public static extern bool GetMenuItemInfo(IntPtr hMenu, int uItem,
                                           bool fByPosition, ref MENUITEMINFO lpmii);
Esempio n. 3
0
 public static extern int InsertMenuItem(IntPtr hMenu, uint uItem, bool fByPosition, ref MENUITEMINFO lpmii);