[comp.windows.ms] Destroying child windows

cig@genrad.UUCP (Charles I. Ganimian Jr.) (01/21/89)

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.