Shell Extension - Context Menu and GUID
From: Damjan Vengušt (damjan.vengust_at_guest.arnes.si)
Date: 10/30/04
- Next message: Martin Harvey (Demon account): "Comment on one of Rob Kennedy's (old) replies on timers."
- Previous message: Jamie: "Re: bde performance with AMD cpu"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Oct 2004 14:59:20 +0200
Hey !
I made a simple shell extension program, which adds custom item in
context menu.
I understand how it works, when I have only one additional menu item.
What If I need to add more than one item.
I guess each menu item should have it's own GUID. How to create COM
object in this case.
This is how I create COM object for only one menu item. MyContextGUID is
GUID for my item.
TComObjectFactory.Create( ComServer, TMyContextMenu, MyContextGUID,
'', 'My Windows Shell Context Menu Extension', ciMultiInstance );
So If I add another Item, it would have GUID MyContextGUID_2.
Well, I managed to add two items, but as you can see (in code above)
only GUID of the first item is used. Is this OK.
So in general I would have to:
- create several menu items and GUIDs
- create some keys in registry (ShelEx\GUID1, ShellEx\GUID2, ....)
- create COM object with GUID1
Thanks for your reply,
Damjan
- Next message: Martin Harvey (Demon account): "Comment on one of Rob Kennedy's (old) replies on timers."
- Previous message: Jamie: "Re: bde performance with AMD cpu"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|