Without resorting to a lot of source code, I would have one program that knows all of the possible top application windows, and then uses the "winapi/TriggerEvent" to send them all a "Close" event. You may need to add the "Close" event to your patterns. If you wanted to get fancy, you could have all programs list themselves in an array in shareddata, and then iterate through the array to close all active programs. You would have to have code to remove the programs from the array as they closed.
If you want to close all of the program at once, you could just close the main program.
If you do not mind source code, you can use something like
EnumThreadWindows . This would require a callback function that would process all windows passed to it. It could call
CloseWindow on each handle. You would want to maintain a (global) field or two, or use the LPARAM to refer to a window not to close.
Original Message:
Sent: 11-05-2019 06:49 AM
From: MICHELA ZANCARLI
Subject: close all top application window
Hello,
i have trasform all MDIChild windows of my applcation in Top Application Windows.
i use the api winapi\CloseAllChildWindows to close all my mdi child panel but it doesn't works with top application panel.
any suggest?
thanks
Michela