I've successfully created some menus using InsertMenu in a Carbon
app that
gets loaded as a plug-in, and attached an event handler using
InstallControlEventHandler with kEventClassControl and
kEventControlClick
I receive the events when the menu items are clicked, but how do I
figure
out which one is clicked?
Am I using the right event constants, kEventClassControl and
kEventControlClick for handling menu items or should I be using
something
else?
You should probably use kEventCommandProcess. The HICommand parameter
in the event has the MenuRef and MenuItemIndex.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden