MenuItemType Enumeration

Specifies a menu-item type for the Type field.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum MenuItemType

Remarks

Members

Text 0 Displays the menu item using a text string.

The TypeData member is the pointer to a null-terminated string, and the TextLen member is the length of the string.

Text is replaced by Text.

Bitmap 4 Displays the menu item using a bitmap.

The low-order word of the TypeData member is the bitmap handle, and the TextLen member is ignored.

Bitmap is replaced by Bitmap and BmpItem.

MenuBarBreak 32 Places the menu item on a new line (for a menu bar), or in a new column (for a drop-down menu, submenu, or shortcut menu).

For a drop-down menu, submenu, or shortcut menu, a vertical line separates the new column from the old.

MenuBreak 64 Places the menu item on a new line (for a menu bar), or in a new column (for a drop-down menu, submenu, or shortcut menu).

For a drop-down menu, submenu, or shortcut menu, the columns are not separated by a vertical line.

OwnerDraw 256 Assigns responsibility for drawing the menu item to the window that owns the menu.

The window receives a WM_MEASUREITEM message before the menu is displayed for the first time, and a WM_DRAWITEM message whenever the appearance of the menu item must be updated.

If this value is specified, the TypeData member contains an application-defined value.

RadioCheck 512 Displays selected menu items using a radio-button mark instead of a check mark if the BmpChecked member is Zero.
Separator 2,048 Specifies that the menu item is a separator.

A menu item separator appears as a horizontal dividing line.

The TypeData and cch members are ignored.

This value is valid only in a drop-down menu, submenu, or shortcut menu.

Rightorder 8,192 Specifies that menus cascade right-to-left (the default is left-to-right).

This is used to support right-to-left languages, such as Arabic and Hebrew.

RightJustify 16,384 Right-justifies the menu item and any subsequent items.

This value is valid only if the menu item is in a menu bar.

See Also