namespace SabreTools.Models.PortableExecutable { /// /// Contains information about each item in a menu resource that does not open a menu /// or a submenu. The structure definition provided here is for explanation only; it /// is not present in any standard header file. /// /// Contains information about the menu items in a menu resource that open a menu /// or a submenu. The structure definition provided here is for explanation only; /// it is not present in any standard header file. /// /// /// public sealed class MenuItem { #region NORMALMENUITEM /// /// The type of menu item. /// public MenuFlags NormalResInfo { get; set; } /// /// A null-terminated Unicode string that contains the text for this menu item. /// There is no fixed limit on the size of this string. /// #if NET48 public string NormalMenuText { get; set; } #else public string? NormalMenuText { get; set; } #endif #endregion #region POPUPMENUITEM /// /// Describes the menu item. /// public MenuFlags PopupItemType { get; set; } /// /// Describes the menu item. /// public MenuFlags PopupState { get; set; } /// /// A numeric expression that identifies the menu item that is passed in the /// WM_COMMAND message. /// public uint PopupID { get; set; } /// /// A set of bit flags that specify the type of menu item. /// public MenuFlags PopupResInfo { get; set; } /// /// A null-terminated Unicode string that contains the text for this menu item. /// There is no fixed limit on the size of this string. /// #if NET48 public string PopupMenuText { get; set; } #else public string? PopupMenuText { get; set; } #endif #endregion } }