Article View: borland.public.cppbuilder.nativeapi
Article #4208Positioning the SHBrowseForFolder window
From: Dennis Jones
Date: Mon, 06 Mar 2006 23:36
Date: Mon, 06 Mar 2006 23:36
20 lines
1712 bytes
1712 bytes
Hi, I would like to center the SHBrowseForFolder window over the window that it was called from. I have code that can position the window, but I cannot figure out where and when to execute that code. The problem is that to correctly position the window, I must know its size first. Unfortunately, the browse window always opens to its minimum size, and then updates its size only after all of the initialization has occured. 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. I was hoping I could post a custom message that would be received by BrowseCallbackProc, but I don't see an obvious way to do that. Does anyone know how I can execute some custom code after the browse window has been displayed and initialized? - Dennis
Technical Details
Message-ID:
<440cc788$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,722adf2ba600e8df,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Positioning the SHBrowseForFolder window Date: Mon, 6 Mar 2006 15:36:42 -0800 Lines: 22 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: <440cc788$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141688200 204.200.27.7 (6 Mar 2006 15:36:40 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail