🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #140

Re: Programming the shell (explorer context menus)

#140
From: Aleksandr Tischenko
Date: Tue, 20 Jan 2004 22:27
32 lines
1937 bytes
You would say, that you need to request a background menu?
In this case you should request it through CreateViewObject instead of
GetUIObjectOf.
Then you work with IContextMenu as usually.

--
Best regards,
Alex Tischenko alext@shellplus.com
Borland Technology Partner, ISDEF member

Shell+ Development Group - Make your Shell extensions with ease!
http://www.shellplus.com

"Christian Aymon" <www.cyamon.com> wrote in message
news:400d5619$1@newsgroups.borland.com...
> The explorer's right pane displays 2 context menus. The menu ''One'' is
> displayed when (at least) an item is selected and the menu ''Two''
> otherwise.
>
> The menu ''One'' can be displayed using the shell function GetUIObjectOf
to
> retrieve an IContextMenu interface, then calling QueryContextMenu of this
> interface to get an hMenu that can then be used in TrackPopupMenu.
>
> My question is: how do I (programmtically) select and display the menu
> ''Two''?
>
> Thank you for helping.
>
> Christian Aymon
>
>
Technical Details
Message-ID: <400dab4b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400d5619$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,e7e08aa622976392
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-20 14:40:18 PST
From: "Aleksandr Tischenko" <alext@shellplus.com>
Newsgroups: borland.public.delphi.nativeapi
References: <400d5619$1@newsgroups.borland.com>
Subject: Re: Programming the shell (explorer context menus)
Date: Wed, 21 Jan 2004 00:27:22 +0200
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 213.179.250.65
Message-ID: <400dab4b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074637643 213.179.250.65 (20 Jan 2004 14:27:23 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail