With other Delphi based EXEs I use ShellExecute with SW_SHOWNOACTIVATE and the calling EXE keeps the focus.
When I launch SimpleBrowser.exe from the demo applications, then SimpleBrowser gets the focus and the calling EXE loses the focus.
This is how I call the SimpleBrowser:
Code: Select all
ShellExecute(Self.Handle, nil, PChar('c:\test\SimpleBrowser.exe'), nil, PChar('c:\test\'), SW_SHOWNOACTIVATE);
Any chance to get this working?
Thanks,
Wolf