Is there a way to get all the child windows of an MDI window, I am trying to make a command to close them all at once but I'm not having any luck.
Any help appreciated.
Printable View
Is there a way to get all the child windows of an MDI window, I am trying to make a command to close them all at once but I'm not having any luck.
Any help appreciated.
Non MFC, forgot to add that.
Try
FindParent() to get the HWND of the parent window and then sent it a DestroyWindow() . This will close all its children as well.