A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Use ON_COMMAND_RANGE
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
In MFC I subclassed CRicheditctrl, It has context menu. In that I have a menu to change font color of selected , this change font color menu has submenus red, green and blue.
Instead of adding three fucntions for red, green, blue menu items in ON_COMMAND, I want to have single function called OnChangeFontColor. Inside OnChangeFontColor how to differentiate which menu item is pressed whether red, green and blue and how to change color accordingly.
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Answer accepted by question author
Use ON_COMMAND_RANGE