|
protectedvirtual |
Called when the user presses a custom button.
If you have called SetAdditionalCommands() with a list of custom commands, you have to override OnUserCommand() in a derived class.
uiCmd contains a command ID which is assigned to a button. Command IDs are assigned automatically starting from CBCGPCalculator::idCommandUser and conform to the order of strings you passed in the string list when called SetAdditionalCommands().
uiCmd | Specifies the command ID. |
The code below enables calculator button with additional commands:
The code below shows how to implement OnUserCommand: