Article View: borland.public.cppbuilder.nativeapi
Article #9352Re: Problems trying to use the 'own filtering' function of WinXP for GetOpenFilename() (using OFN_ENABLEINCLUDENOTIFY)
From: Remy Lebeau (TeamB)
Date: Sat, 17 Jul 2004 21:35
Date: Sat, 17 Jul 2004 21:35
26 lines
1945 bytes
1945 bytes
<M_R> wrote in message news:11rif0dmrj7e9pt8id4qh839jdrrkh7kt7@4ax.com...
> I had no success evaluating lpon such, that I get the
> filename. Perhaps someone knows how to extract it
> from LPOFNOTIFYEX.
The OFNOTIFYEX structure has psf and pidl members. The psf member is an
IShellFolder interface, and the pidl member is the ITEMIDLIST of the
particular file within the IShellFolder. You can use the
IShellFolder::GetAttributesOf() and IShellFolder::GetDisplayNameOf() methods
to get information about the file.
> Creating a function ShouldBeIncluded(), which always returns false
<snip>
> strangely results in a open-file-box which also displays all the files.
> (Same result as if ShouldBeIncluded() always returns true.)
According to the documentation:
"The dialog box always includes items that have both the
SFGAO_FILESYSTEM and SFGAO_FILESYSANCESTOR attributes, regardless of the
value returned by CDN_INCLUDEITEM."
Gambit
Technical Details
Message-ID:
<40f99b84$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<11rif0dmrj7e9pt8id4qh839jdrrkh7kt7@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ff48c87a2e0fa727 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: <11rif0dmrj7e9pt8id4qh839jdrrkh7kt7@4ax.com> Subject: Re: Problems trying to use the 'own filtering' function of WinXP for GetOpenFilename() (using OFN_ENABLEINCLUDENOTIFY) Date: Sat, 17 Jul 2004 14:35:47 -0700 Lines: 28 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: <40f99b84$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090100100 68.69.17.41 (17 Jul 2004 14:35:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail