🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Positioning the SHBrowseForFolder window

#4215
From: Dennis Jones
Date: Tue, 07 Mar 2006 15:59
25 lines
1903 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:440d2feb$1@newsgroups.borland.com...
>
> You never said anything earlier about doing that.  Next time you want
> someone to reproduce your problem, always provide specific details about
> what you are actually doing in the first place.


No, I guess I wasn't explicit enough.


> Using window hooks and subclassing, you can catch when the window is
> becoming visible and make it centered before it is shown onscreen.
>
> The following code works for me (yes, I realize that this is a bit complex
> for the task, but it works nontheless):

<code snipped>

Yes, a little complex for the task, but it does demonstrate a useful
technique.  So thanks for that.  However, I think I'll try JD's simpler
suggestion first and see how that goes.

- Dennis
Technical Details
Message-ID: <440dadfc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <440cc788$1@newsgroups.borland.com> <440cd987$1@newsgroups.borland.com> <440d053b$1@newsgroups.borland.com> <440d2feb$1@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> <440d2feb$1@newsgroups.borland.com>
Subject: Re: Positioning the SHBrowseForFolder window
Date: Tue, 7 Mar 2006 07:59:57 -0800
Lines: 27
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: <440dadfc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141747196 204.200.27.7 (7 Mar 2006 07:59:56 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail