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.
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.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill