To destroy an MDI child window, use the WM_MDIDESTROY message. Pass the child window's handle in the message's wParam parameter.