🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #251767

Re: Dialog: Changing File Chooser Control

#251767
From: Bernd Rose
Date: Fri, 05 Oct 2012 19:56
37 lines
3594 bytes
On Thu, 4 Oct 2012 14:15:46 -0500, Sqwertz wrote:

[Replace Dialog directory picker for saving attachment(s)]
> While it looks like I might be able to successfully drop in a call to
> the "Common Item Dialog" (IFileDialog - which appeared in Vista) it
> doesn't look like the return object (or array of objects) would be
> compatible with teh structure that Dialog is expecting.

The undocumented IShellBrowserService.GetPidl may help doing such
a conversation. But are you really ready to hook into a running
Dialog just to get a better directory picker??
 
> And the reason I see Windows 7 specific features in the open file
> dialog is that the control is customizable VIA registry keys.  Which
> explains why it's semi-Windows 7 aware.

Do you now refer to an "open file dialog" (like <Import messages...>)
or is it still the directory picker (<Save Attachment(s)>) you are
talking about. The latter does look different on different Windows
versions out of two reasons:

First, resizing and direct folder name input (edit box) as well as 
Unicode support will only be active on systems supporting these 
functions. Therefore, Marcus will have implemented code to decide 
such cases. (Btw.: I overlooked the presence of SHBrowseForFolderW 
in the code the day before yesterday. Since this is the one that 
will be used on contemporary Windows systems, it will be the one 
you'd need to intercept.)

Second, the content of the selection pane of the directory picker 
changes with Windows version, because Marcus obviously did not define
a root entry. (That's the usual approach, btw., and no oversight.) 
In such cases, the namespace root of the Windows shell file system 
will be used. Newer Windows versions just pluck more special "folders"
into this root. Hence the changes...

Bernd
Technical Details
Message-ID: <1g7hgerggrmwu.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!l8no27093121qao.0!news-out.google.com!q10ni64980367wif.0!nntp.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!novso.com!nerim.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <1ac4o0fax9ip6.dlg@sqwertz.com> <10vu4v6ner9zv$.dlg@b.rose.tmpbox.news.arcor.de> <1oiw9y44fqvqe.dlg@sqwertz.com> <128of2jep1mby$.dlg@b.rose.tmpbox.news.arcor.de> <1a03z6qddwzcx$.dlg@sqwertz.com>

Show Full Headers
Complete Article Headers
Message-ID: <1g7hgerggrmwu.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Dialog: Changing File Chooser Control
Date: Fri, 5 Oct 2012 21:56:11 +0200
From: Bernd Rose <b.rose.tmpbox@expires-2012-10-31.arcornews.de>
References: <1ac4o0fax9ip6.dlg@sqwertz.com> <10vu4v6ner9zv$.dlg@b.rose.tmpbox.news.arcor.de> <1oiw9y44fqvqe.dlg@sqwertz.com> <128of2jep1mby$.dlg@b.rose.tmpbox.news.arcor.de> <1a03z6qddwzcx$.dlg@sqwertz.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!l8no27093121qao.0!news-out.google.com!q10ni64980367wif.0!nntp.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!novso.com!nerim.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Received: by 10.180.107.167 with SMTP id hd7mr706256wib.0.1349466974447;
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (c6c17263.171.279)
MIME-Version: 1.0
Lines: 37
Organization: Arcor
NNTP-Posting-Date: 05 Oct 2012 21:56:14 CEST
NNTP-Posting-Host: e9d80829.newsspool4.arcor-online.net
X-Trace: DXC=\jkfGB;
 QYJ^YI9]OHn9o5^4IUK<Cl32<Q4Fo<]lROoRQ8kF<OcfhCO[NeSMXLS>:PWBYf[Tl<>RjZVAne`aKYZW_;
 Ecio1PmS1V
X-Complaints-To: usenet-abuse@arcor.de
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-Bytes: 3365