Changes by last author:

Added:
int insertMenuItem (int hMenu, int uItem, LPSTR itemName, int fState, int subMenu)

*hMenu: Handle to the menu in which the new menu item is inserted.

*uItem: Unique identifier of the menu item. Must not be 0 or order may be changed.

*itemName: Menu item string. If itemName is "---", a horizontal line will be appear.

*fState: Menu item state, e.g. MFS_CHECKED, MFS_DEFAULT, MFS_DISABLED, MFS_ENABLED, MFS_GRAYED, MFS_HILITE, MFS_UNCHECKED, MFS_UNHILITE.

*subMenu: Handle to the submenu associated with the menu item. If the menu item is not an item that opens a submenu, please use 0.

Returns true if succeeded.

Menu items appear in the same order as the order of insertMenuItem() calls.