🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Shell popup menu

#5941
From: Remy Lebeau (TeamB)
Date: Tue, 21 Jun 2005 02:55
20 lines
1755 bytes
"Antreas7" <antreas7@gmail.com> wrote in message
news:42b77365@newsgroups.borland.com...

> Is there a way to find out the items that windows explorer
> would use displaying the popup menu for a specific file
> or folder?

The only way to do that is to actually create a blank menu, pass it to
Explorer to fill in, and then see what was actually put into it.  You use
the IContextMenu interface for that.  You have to first retreive the
IShellFolder interface for the folder/file's parent folder.  You can use
SHGetDesktopFolder(), IShellFolder::ParseDisplayName(), and
IShellFolder::BindToObject() for that.  Once you have the parent folder's
IShellFolder interface, you can then call IShellFolder::GetUIObjectOf() to
get the IContentMenu interface, and then finally call
IContentMenu::QueryContextMenu().


Gambit
Technical Details
Message-ID: <42b781a4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42b77365@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,49d4c9bc0c0cea4b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42b77365@newsgroups.borland.com>
Subject: Re: Shell popup menu
Date: Mon, 20 Jun 2005 19:55:25 -0700
Lines: 22
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: <42b781a4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119322532 68.69.17.41 (20 Jun 2005 19:55:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail