We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Maps a contiguous range of command IDs to a single update message handler function.

ON_UPDATE_COMMAND_UI_RANGE(id1, id2, memberFxn )


Command ID at the beginning of a contiguous range of command IDs.


Command ID at the end of a contiguous range of command IDs.


The name of the update message-handler function to which the commands are mapped.

Update message handlers update the state of menu items and toolbar buttons associated with the command. The range of IDs starts with id1 and ends with id2.

There is no automatic support for message map ranges, so you must place the macro yourself.

Header: afxmsg_.h