Why you can't send WM_CLOSE message to the other dialog before recreating it? BTW, why it's necessary to have CDialog->CModelessDialog>CXXXDailog/CYYYDialog?
-Sarath.
My blog - Sharing My Thoughts
Rate the answers and close your posts if it's answered