🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using a window handle

#3637
From: Malcolm Smith
Date: Wed, 10 May 2006 13:05
28 lines
1703 bytes
I have a COM DLL implementing the IEmptyVolumeCache interface.  One of the 
functions is :

  virtual HRESULT STDMETHODCALLTYPE ShowProperties(
      HWND hwnd);

This function is used to show a form that displays all files about to be 
purged.

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

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.  And, if a 
user restores either form to make sure they both restore.

Are there any other reasons for using the passed handle ?

Any tips ?

-- 
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com

Associate Editor
C++Builder Developers Journal
http://www.bcbjournal.com
 
Technical Details
Message-ID: <4461e528@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,85bceed53b519705,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Malcolm Smith" <mjfreelancing@optusnet.com.au>
From: "Malcolm Smith" <mjfreelancing@optusnet.com.au>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Using a window handle
Date: Wed, 10 May 2006 23:05:41 +1000
Lines: 30
Organization: MJ Freelancing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 211.30.161.48
Message-ID: <4461e528@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147266344 211.30.161.48 (10 May 2006 06:05:44 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail