Files
SabreTools.Models/PortableExecutable/MenuItemExtended.cs

38 lines
1.2 KiB
C#
Raw Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.PortableExecutable
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// Defines a menu item in an extended menu template. This structure definition is for
/// explanation only; it is not present in any standard header file.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/menuex-template-item"/>
public sealed class MenuItemExtended
{
/// <summary>
/// Describes the menu item.
/// </summary>
2023-09-10 21:24:10 -04:00
public MenuFlags ItemType { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Describes the menu item.
/// </summary>
2023-09-10 21:24:10 -04:00
public MenuFlags State { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// A numeric expression that identifies the menu item that is passed in the
/// WM_COMMAND message.
/// </summary>
2023-09-10 21:24:10 -04:00
public uint ID { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// A set of bit flags that specify the type of menu item.
/// </summary>
2023-09-10 21:24:10 -04:00
public MenuFlags Flags { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// A null-terminated Unicode string that contains the text for this menu item.
/// There is no fixed limit on the size of this string.
/// </summary>
2023-09-10 21:24:10 -04:00
public string? MenuText { get; set; }
2023-09-04 00:11:04 -04:00
}
}