🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Positioning the SHBrowseForFolder window

#4218
From: Dennis Jones
Date: Tue, 07 Mar 2006 16:32
33 lines
1978 bytes
"JD" <nospam@nospam.com> wrote in message
news:440d30ca@newsgroups.borland.com...
>
> "Dennis Jones" <nospam@nospam.com> wrote:
> >
> > [...] my point is that the size that is returned for the
> > window is NOT correct.
>
> Confirmed.
>
> >> > Thus, if I try to execute my centering code from anywhere within the
> >> > BrowseCallbackProc function, it is always too early because the
> >> > window's size has not been updated yet.
>
> Confirmed.
>
> > [...] BIF_NEWDIALOGSTYLE flag [...] note: you will need to
> > use CoInitializeEx( NULL, COINIT_APARTMENTTHREADED ) for
> > that flag to work
>
> I do *not* need to.

Hmm.  I don't seem to need it now.  I wonder if it was necessary on Windows
NT 4 or 2000  (I stuck with NT 4 until just about 2 years ago).


> I use AllocateHWnd and then use PostMessage when I detect
> BFFM_INITIALIZED and it works for me.

Thank you, JD, it is a very nice solution.  Works perfectly.

- Dennis
Technical Details
Message-ID: <440db580$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <440cc788$1@newsgroups.borland.com> <440cd987$1@newsgroups.borland.com> <440d053b$1@newsgroups.borland.com> <440d30ca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,722adf2ba600e8df
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dennis Jones" <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <440cc788$1@newsgroups.borland.com> <440cd987$1@newsgroups.borland.com> <440d053b$1@newsgroups.borland.com> <440d30ca@newsgroups.borland.com>
Subject: Re: Positioning the SHBrowseForFolder window
Date: Tue, 7 Mar 2006 08:32:02 -0800
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 204.200.27.7
Message-ID: <440db580$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141749120 204.200.27.7 (7 Mar 2006 08:32:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail