Let's say my application has a pointer to a CDialog derived class and I create some modeless dialogs.(More than one!). My question is how to destroy all of them - myPointer->DestroyWindow() - for the last created one and after that how to redirect the pointer to the rest of the dialogs in order to destroy all of them?