[DUG] ShellExecute with SW_SHOWMINNOACTIVE
Ross Levis
ross at stationplaylist.com
Sat Jan 30 00:53:35 NZDT 2010
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:ross at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100130/89c176f0/attachment.html
More information about the Delphi
mailing list