I haven't tried it but you may be able to do a plain "SendMessage( WM_DESTROY...)" to the Child window.
I believe you'll need to used the windows "-handle" property or GetWindow() func to do it.
I'll take a look tinite on it.
Lemme know if it works or not.
-stuart
-----Original Message-----
From: perl-win32-gui-users-admin@lists.sourceforge.net [mailto:perl-win32-gui-users-admin@lists.sourceforge.net] On Behalf Of Maksim Golunov
Sent: Tuesday, April 22, 2003 4:56 PM
To: 'Cruickshanks, Darin'; perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] Silly question

I faced the problem as well. Even looked at MFC implementation of DoModal().
Eventually, I haven't found nothing better that calling $window->Hide() for child windows.
-----Original Message-----
From: perl-win32-gui-users-admin@lists.sourceforge.net [mailto:perl-win32-gui-users-admin@lists.sourceforge.net] On Behalf Of Cruickshanks, Darin
Sent: Tuesday, April 22, 2003 5:10 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Silly question

This seems like it will have an obvious answer but I really cant see it in the documentation?!?
 
How do you 'kill off' any child windows that may have been created?
 
Cheers,
 

Darin

--------------------------------------------

Darin Cruickshanks
Labs Manager, Computing Service
University of Essex
darin@essex.ac.uk
01206 873585