[DUG] Forcing a shellexecute window onto top.

Phil Scadden p.scadden at gns.cri.nz
Tue May 30 14:13:49 NZST 2006


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



More information about the Delphi mailing list