PC Review


Reply
Thread Tools Rate Thread

Can a context menu handler add an command item and make it bedefault?

 
 
Jaw
Guest
Posts: n/a
 
      28th Apr 2009
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.)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event handler for context menu; help needed james Microsoft C# .NET 5 11th May 2006 11:01 AM
Registry Problem, custom context menu handler. lushdog Microsoft Windows 2000 Registry 1 19th Apr 2006 06:01 AM
Context menu handler code, from C++ lushdog Microsoft C# .NET 0 27th Mar 2006 06:35 AM
Prompted to allow a context menu handler event every boot [AVG 7] =?Utf-8?B?RGFuaWVsIEV2YW5z?= Spyware Discussion 3 13th Feb 2006 08:36 AM
Context Menu Handler and VB.Net inzo Microsoft Dot NET 0 26th Aug 2003 09:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 PM.