using System.Runtime.InteropServices;
namespace SabreTools.Data.Models.PortableExecutable.Resource.Entries
{
///
/// 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.
///
///
[StructLayout(LayoutKind.Sequential)]
public sealed class PopupMenuItem : MenuItem
{
///
/// Describes the menu item.
///
[MarshalAs(UnmanagedType.U4)]
public MenuFlags PopupItemType;
///
/// Describes the menu item.
///
[MarshalAs(UnmanagedType.U4)]
public MenuFlags PopupState;
///
/// A numeric expression that identifies the menu item that is passed in the
/// WM_COMMAND message.
///
public uint PopupID;
///
/// A set of bit flags that specify the type of menu item.
///
[MarshalAs(UnmanagedType.U4)]
public MenuFlags PopupResInfo;
///
/// A null-terminated Unicode string that contains the text for this menu item.
/// There is no fixed limit on the size of this string.
///
[MarshalAs(UnmanagedType.LPWStr)]
public string PopupMenuText = string.Empty;
}
}