Article View: borland.public.cppbuilder.nativeapi
Article #5898Re: Shell popup menu
From: Antreas7
Date: Thu, 23 Jun 2005 21:24
Date: Thu, 23 Jun 2005 21:24
31 lines
2149 bytes
2149 bytes
Remy Lebeau (TeamB) wrote: > "qyte" <gyte@vivodinet.gr> wrote in message > news:42b95c7f@newsgroups.borland.com... > > >>To be more specific i built the following test project... > > > That code is wrong for so many reasons. Asside from all the memory leaks > (you must call Release() on every interface you retrieve, and free the > ITEMIDLIST that ParseDisplayName() returns), you are also not using > BindToObject() correctly. For one thing, you requested it to return > IContextMenu and then are casting the returned pointer to IShellFolder > instead. That is completely wrong. Also, you did not heed what I told you > earlier: > > "You have to first retreive the IShellFolder interface for the > folder/file's ***parent*** folder." > > That is a very important step that you are completely ignoring. Please see > my other reply. > > > Gambit > > > I used these function as you did and the popup menu worked fine.The problem is that nothing is done when you click with the mouse an item of the popup menu. How can i add the events on these items?
Technical Details
Message-ID:
<42bb287b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b77365@newsgroups.borland.com> <42b781a4@newsgroups.borland.com> <42b95c7f@newsgroups.borland.com> <42b9c800$3@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 Date: Fri, 24 Jun 2005 00:24:14 +0300 From: Antreas7 <antreas7@gmail.com> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Shell popup menu References: <42b77365@newsgroups.borland.com> <42b781a4@newsgroups.borland.com> <42b95c7f@newsgroups.borland.com> <42b9c800$3@newsgroups.borland.com> In-Reply-To: <42b9c800$3@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 150.140.130.157 Message-ID: <42bb287b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119561851 150.140.130.157 (23 Jun 2005 14:24:11 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail