Hi !

I want to add convenience to the window of another program for my own purpose.

Program is closed source (Delphi). It consist of 2 Windows:
- Basic window, that always takes focus and get input queue
- Foreground window (non-modal)

When Foreground window takes a focus I'm pressing Alt + Tab 2 times.
After that, Basic window takes a focus.
I need foreground window took focus instead. It's usual window with its handle.

How can I do that?
Somehow change Foreground to modal? Or EnableWindow API + Basic window to disable it temporarily?
Thanks.