Hi
I made a context menu handler and paired with an shell object. It
works fine, the handler really adds an item on the menu, and the
function behaves correctly as expecting.
I overrided IContextMenu::QueryContextMenu() method so that I can add
a command item(using InsertMenu() function). Can I make the command
to be default here? (so that I can handle "doublick event")
I surveyed for this issue for a while but don't have a satisfied
result. I am also considering a idea that is adding a command with
default(something like "OPEN") on registry and assigned a command
handler to it?
(The scenario is.. The shell object is a LAN device, I must open it in
a browser and that will need to find out the device IP. However, only
my handler can get the device IP. That is why I need to take care of
this command in my handler.)
|