Most of the samples illustrate the use of resource-based menus and message map entries for ON_COMMAND and ON_UPDATE_COMMAND_UI handlers.
CTLRBARS illustrates the use of ON_COMMAND_RANGE and ON_UPDATE_COMMAND_UI_RANGE for handling commands assigned a range of adjacently numbered command IDs.
DYNAMENU illustrates dynamically modifying the list of items in a menu; handling commands not known at compile time; and updating the status bar command prompt for such commands.
See Also