"Chris Jones" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On older versions of Windows, the focus shifts to the new process on
> startup. How can I force it to work in XP?
You can try calling SetForegroundWindow() on a handle of a window in the
process that you want to jump to the fore. With the introduction of '98 on
9x kernels and 2000 on NT, MS changed the rules that surround taking the
focus. If the process that creates the child processes is in already the
foreground, it should have no problem moving a child into the foreground. If
it does not, Windows will likely just flash the child process' "button" in
the taskbar.
Check the docs for AllowSetForegroundWindow(), LockSetForegroundWindow()
which were added in support of the "new" foreground policy.
Regards,
Will
|