Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ON_UPDATE_COMMAND_UI_RANGE 

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


ON_UPDATE_COMMAND_UI_RANGE(id1, id2, memberFxn )

Parameters

id1

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

id2

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

memberFxn

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.

Community Additions

ADD
Show:
© 2015 Microsoft