🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9031

Re: ParamStr()

#9031
From: Remy Lebeau (TeamB)
Date: Wed, 04 Aug 2004 21:47
22 lines
2039 bytes
"Gregory K." <gkoslov@walla.co.il> wrote in message
news:4111559f@newsgroups.borland.com...

> Well, what I am trying to do is let the user edit the shortcut
> and the file it is pointing to. The user right-clicks the icon and
> chooses "Edit With MyProg". Then a dialog opens where I want
> the user to be able to choose where he wants the shortcut to be
> placed/moved while showing him where it currently is.

You will probably have to make a Shell Context Menu extension (a DLL
implementing the IContextMenu interface) and register the DLL to handle the
.lnk file extension.  When the user right-clicks on any shortcut, your
extension will be invoked specifying the shortcut's filename.  Then you can
have the extension utilize the IShellLink interface to extract information
from the shortcut and see if it points to a file with your custom file
extension.  If so, then you can choose whether or not to add your new menu
item for editing the shortcut.  If you do, then your extension will still
have the shortcut filename available when the menu item is clicked on.


Gambit
Technical Details
Message-ID: <41115956$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <411100dc@newsgroups.borland.com> <41111ebf$1@newsgroups.borland.com> <4111559f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b671c17e7d6b1e9d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <411100dc@newsgroups.borland.com> <41111ebf$1@newsgroups.borland.com> <4111559f@newsgroups.borland.com>
Subject: Re: ParamStr()
Date: Wed, 4 Aug 2004 14:47:57 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41115956$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091656022 68.69.17.41 (4 Aug 2004 14:47:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail