Posted by: Jiri Masek
Hi Gupta users,
I need to close all open Top level windows owned by the MDI window when the
MDI is closed.
So I use the On SAM_Close Message of the MDI window and will send SAM_Close
messages to all open window, that were created with
SalCreateWindow(frmXyz, hWndMDI).
As those windows are not defined below the MDI window but as top level
windows, the SalSendMsgToChildren(..) does not work.
Also SalGetFirstChild & SalGetNextChild does not return the correct handles.
Is there a way to get all those toplevel Windows enumerated.
(SalFindWindow (hWndMDI, 'frmXYZ') works, but I need to give the explicit
name of the window and there are lot of different names in our project)
Any idea ??
Thanks
Jiri