I have made a sample application which hopefully does what you need.
Download the sample from here :
https://samples.tdcommunity.net/index.ph ... rch_mode=f
It uses the WinAPI functions EnumThreadWindows and EnumChildWindows
to enumerate all current opened Top Level Windows in the current
It finds MDI, MDI form/table, modeless/modal dialogs, independent of
The sample shows a MDI, some MDI childs and modal/modeless dialogs.
A timer is set to 5 seconds which will hide all opened windows and
present a Relogin dialog. When this dialog is closed the hidden
windows will be shown again. This is repeated until you close the
application. So when you start the application, just wait 5 secs !
The sample uses CallBack DLL by Christian Schubert. It is needed,
because the Enum API functions need callback functions.
I created the sample in TD1.5, but I added all the other DLL TD
versions for your convenience. First change the DLL name in
Callback.apl to the correct TD version you are using. It should work
in all TD versions (except TD51, you should change some code to get it
to work due to classname changes). For the original CallBack archive
and info go to Christian Schubert website :
I hope you find this usable.