Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Nov : Do not receive focus on start
| Subject: | Do not receive focus on start |
| Posted by: | "Mike Warren" (miwa-not-this-b..@or-this-csas.net.au) |
| Date: | 14 Nov 2006 05:22:32 |
Is there a clean way of making my program not receive focus when it
starts?
I have two programs. I want the first program to retain the focus when
it starts the second one with CreateProcess().
At the moment I post a WM_SETFOCUS message from the second app back to
the first but I can see a risk of the message being sent too early
unless I put in a long delay.
The new app opens 2 borderless fsStayOnTop windows.
Other than sending the first app a message if a mouse is clicked on
either window I don't need it to ever have the focus.
--
Mike