7.5.3 Normal Menu Item

A normal menu item is very similar to a pop-up menu item, except that it has an additional menu identifier. A NormalMenuItem structure has the following form:

struct NormalMenuItem {
    WORD fItemFlags;
    WORD wMenuID;
    char szItemText[];
};

Following are the members in the NormalMenuItem structure:

fItemFlags

Specifies menu-item information. This member can have one or more of the following values:

Value Meaning

MF_GRAYED Item is grayed.
MF_DISABLED Item is inactive.
MF_CHECKED Item can be checked.
MF_MENUBARBREAK Item is a menu-bar break.
MF_MENUBREAK Item is a menu break.
MF_END Item ends the menu.

wMenuID

Identifies the menu item.

szItemText

Specifies a null-terminated string that appears in the menu and identifies the menu item. There is no fixed limit on the size of this string.

A menu separator is a normal menu item for which fItemFlags is zero, wMenuID is zero, and the szItemText array is empty.