
Minimize Main window on startup
Hi,
my question concerns BPW 7.0 (Windows traget).
I have a main windows (a dialog box created using Resource Workshop)
and I want to perform the following :
If my appliaction is executed without Command-Line parameters, the
window is displayed and waits for commands. This works fine.
If my application is executed with Command-line parameters, I want to
minimize it (this part doesn't work) and execute the command before
exiting automatically.
When I try to minimize my window in the SetupWindow procedure using
Winprocs.CloseWindow(HWindow), my window effectively minimize but is
restored again between SetupWindow and messages processing
(MessageLoop).
If I minimize it in my TApplication.MessageLoop (before any message
processing), my window stays minimized but it is displayed before
reducing its size which is unwanted.
So How can I minimize a main window at startup (a dialog box) as is
done for example with WinSpector ?
Thanks in advance for any help.
David.