🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #13461

Destroying child windows

#13461
From: Charles I. Ganimian Jr.
Date: Fri, 20 Jan 1989 17:24
19 lines
876 bytes
What is the proper way to destroy a child window?

Here is the scenario, I create a child window the size of the client 
area of its parent.  I paint on it and when done the user clicks
on a child window control button and I now want to destroy the window.

do I :
	1. PostMessage WM_CLOSE to the child 
	2. DestroyWindow hWndChild right there
	3. PostMessage to the parent to destroy the child

I know this is simple but I am having trouble after the child 
is destroyed and I want to verify that I am doing this correctly.


					thanks

					charlie g.
	
Technical Details
Message-ID: <16015@genrad.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!husc6!genrad!cig

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!husc6!genrad!cig
From: cig@genrad.UUCP (Charles I. Ganimian Jr.)
Newsgroups: comp.windows.ms
Subject: Destroying child windows
Message-ID: <16015@genrad.UUCP>
Date: 20 Jan 89 17:24:42 GMT
Distribution: na
Organization: GenRad, Inc., Concord, Mass.
Lines: 19