🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dynamically created "send to"

#9691
From: Remy Lebeau (TeamB)
Date: Thu, 17 Jun 2004 00:44
29 lines
2259 bytes
"Mortz" <rmorteo@hotmail.com> wrote in message
news:40d0b8eb@newsgroups.borland.com...

> I need to create a program that insets a Send To option in the
> menu that appears when rightclicking a file. If possible, this option
> must dynamically create a submenu (or call a program that creates
> the submenu). Optins in this submenu must be retrieved from a
> "running application". When an option of that submenu is selected,
> it has to be passed to the above mentioned "running application" in
> order to process the selected command with the file that was
> rightclicked in the first place.

What you ask for is not trivial to implement.  You need a Context Menu Shell
Extension, implemented as a separate DLL from your main executable.  You
have to implement an IContentMenu interface and then register it with the OS
so that it can use your interface whenever a popup menu appears.  Refer to
the following documentation for more information:

    Creating Shell Extension Handlers

http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/extensionhandlers/shell_ext.asp

    Creating Context Menu Handlers

http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/extensionhandlers/contextmenuhandlers.asp


Gambit
Technical Details
Message-ID: <40d0ea69$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40d0b8eb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,18d7600f89697e01
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40d0b8eb@newsgroups.borland.com>
Subject: Re: Dynamically created "send to"
Date: Wed, 16 Jun 2004 17:44:35 -0700
Lines: 31
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.169.168.124
Message-ID: <40d0ea69$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087433321 68.169.168.124 (16 Jun 2004 17:48:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail