According to the docs "If the specified window is a parent or owner
window, DestroyWindow automatically destroys the associated child or
owned windows when it destroys the parent or owner window" but that's
not what I find.
If I create a modeless dialog box, owned by my window but with its own
message loop running in a different thread, DestroyWindow destroys my
window but *not* the dialog box. That only gets destroyed when my
application quits. I've confirmed that the dialog box really is owned
by my window using GetWindowLong(hdlg, GWL_HWNDPARENT).
Is this an error in the documentation or can I be doing something wrong
to cause it? The structure of my application is such that I have to
run the dialog box's message loop in a separate thread.
To reply by email change 'news' to my forename.