Hi,
I have an application that has a single event handler which handles 8 different menu selection items (they happen to be sources for a scope display). Since handling any of these requires knowledge of all of these, it makes sense to handle all of them with a single event, rather than configure one event per button.
So, the question is, once I enter the event handler, how do I determine exactly which of the buttons (menu item, actually - sorry for the interchangeability) has been pressed? I have:
Source
Type
Time
CtlRef
OldVal
NewVal
as possible parameters, but none of these provide an identification as to which one was pressed. BTW, the reason for doing this is that if the change happens to result in an invalid configuration, I wish to reset the menu selection to the previous value.
Thanks,
Jason