Never mind, I found the problem.  I'm running the app with a command-line
parameter which doesn't display the main form, but instead runs through a
process and then exits.  It appears the main form needs to appear, or some
windows messages need to be processed before the app minimizes.  Without the
parameter, the program does load minimized after the splash screen
terminates.

 

Ross.

 

From: Ross Levis [mailto:r...@stationplaylist.com] 
Sent: Saturday, 30 January 2010 12:30 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: ShellExecute with SW_SHOWMINNOACTIVE

 

>From a Delphi app I'm wanting to load another Delphi app minimized without
affecting the focus of the current app.  But the ShellExecute function seems
to be ignoring anything I put in the ShowCmd parameter.  SW_SHOWMINNOACTIVE
should do just what I want but the app appears normally on the screen.  Any
ideas?

 

Thanks,

Ross.

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to