[DUG] Forcing a shellexecute window onto top.
Rohit Gupta
rohit at cfl.co.nz
Tue May 30 14:37:39 NZST 2006
I dont have a solution for that. The only place where I have used it so that
only one instance of the launched app can run and it opens a new
mdichildwindow is an expert for Delphi IDE. I just never realised that the
app did not come to the front. :-)
From: "Phil Scadden" <p.scadden at gns.cri.nz>
Organization: Geological and Nuclear Sciences
To: delphi at ns3.123.co.nz
Date sent: Tue, 30 May 2006 14:13:49 +1200
Priority: normal
Subject: [DUG] Forcing a shellexecute window onto top.
Send reply to: NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz>
<mailto:delphi-request at ns3.123.co.nz?subject=unsubscribe>
<mailto:delphi-request at ns3.123.co.nz?subject=subscribe>
[ Double-click this line for list subscription options ]
Having some fun with Shellexecute. I am using it from my program to
get another application open one of its documents. No problem there.
However, if the application is ALREADY running, then the document
is opened within the existing application. Hmm. Not so good but no
real problem. Now the real problem. If the application is covered by another
window, this it is not brought to top and its not obvious that the document
has been opened all. It looks like my application is not doing its job.
I am calling shellexecute with shownormal. Any way to force the application
to the top short of scanning the process list or findwindow and calling
setwindowpos on that instance?
----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
Ph +64 3 4799663, fax +64 3 477 5232
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
Regards
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email rohit at cfl.co.nz or r.gupta at xtra.co.nz
======================================================================
More information about the Delphi
mailing list