Click or drag to resize
Xcalibur Systems LLC Logo

MenuItemTypes Enumeration

Menu Item Types.

MENUITEMINFO structure


Namespace: Xcalibur.NativeMethods.V2.Menus
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[FlagsAttribute]
public enum MenuItemTypes
Members
Member nameValueDescription
String0 Displays the menu item using a text string. The dwTypeData member is the pointer to a null-terminated string, and the cch member is the length of the string. String is replaced by .
Bitmap4 Displays the menu item using a bitmap. The low-order word of the dwTypeData member is the bitmap handle, and the cch member is ignored. Bitmap is replaced by and .
MenubarBreak32 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.
MenuBreak64 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.
OwnerDraw256 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 member contains an application-defined value.
RadioCheck512 Displays selected menu items using a radio-button mark instead of a check mark if the member is NULL.
Separator2,048 Specifies that the menu item is a separator. A menu item separator appears as a horizontal dividing line. The and members are ignored. This value is valid only in a drop-down menu, submenu, or shortcut menu.
RightOrder8,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.
RightJustify16,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