🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using a window handle

#3641
From: Remy Lebeau (TeamB)
Date: Wed, 10 May 2006 17:06
30 lines
1843 bytes
"Malcolm Smith" <mjfreelancing@optusnet.com.au> wrote in message
news:4461e528@newsgroups.borland.com...

> I cannot work out how to make use of the hwnd parameter correctly.

According to the documentation:

    IEmptyVolumeCache::ShowProperties Method

http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/ifaces/iemptyvolumecache/showproperties.asp

    hwnd
    [in] Parent window to be used when displaying the UI.


Did you try passing in the Handle of your form as the parent window?

> For example, if a user minimizes my form (which is currently modal) I'm
> not sure how to make the calling (microsoft) window also minimize.

It should minimize automatically if the window that ShowProperties()
displays is a child of your form's window.

> And, if a user restores either form to make sure they both restore.

Child windows are automatically shown when their parent window is shown.


Gambit
Technical Details
Message-ID: <44621e0c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4461e528@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,85bceed53b519705
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4461e528@newsgroups.borland.com>
Subject: Re: Using a window handle
Date: Wed, 10 May 2006 10:06:03 -0700
Lines: 32
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: <44621e0c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147280908 68.69.17.41 (10 May 2006 10:08:28 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail