Objective Toolkit : Chapter 7 Menu Bars : Menu Button Map Macros
Menu Button Map Macros
Two macros are provided for defining menu buttons in the button map.
 
MENU_BUTTON(id, style, menuId, popupIndex, title)
MENU_BUTTON_EX(id, style, menuId, popupIndex, title, bitFlag)
Table 26 – Parameters for Menu Button Map 
Macro parameter
Description
id
The unique ID for this button.
style
The style for this button (should include SEC_TBBS_NODISABLE so that the button is not disabled if it does not have a command handle).
menuId
The ID of the menu resource containing the pop-up menu for this button.
popupIndex
The index of pop-up menu within menuId.
title
The title for this button.
bitFlag
The bit flag for this menu button.