How to launch 'minimised'?
-
I need to launch a Vis Studio 6 C++ application that is initially minimised. This is a Dialog-Based app. How to do this? Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress. Much thanks in advance. Robert :)
-
I need to launch a Vis Studio 6 C++ application that is initially minimised. This is a Dialog-Based app. How to do this? Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress. Much thanks in advance. Robert :)
Your easiest option would be to progrmatically minimize it in
OnInitDialog
otherwise you will have to manually (text) edit your.rc
file. I believe that is where it is stored. Unfortunately I have not used VC6 in quite awhile and I am currently working console based apps. Alternatively you could create an SDI app with CFormView and remove the tool bars etc. Matt -
I need to launch a Vis Studio 6 C++ application that is initially minimised. This is a Dialog-Based app. How to do this? Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress. Much thanks in advance. Robert :)
The easiest thing you can do is putting the following call at the end of your OnInitDialog(): BOOL CSampleDlg::OnInitDialog() { ... // Open the dialog minimized ShowWindow( SW_MINIMIZE ); return TRUE; } That should do it... :-D Hope it will help you! Mykel
-
The easiest thing you can do is putting the following call at the end of your OnInitDialog(): BOOL CSampleDlg::OnInitDialog() { ... // Open the dialog minimized ShowWindow( SW_MINIMIZE ); return TRUE; } That should do it... :-D Hope it will help you! Mykel
Thanks Mykel. I have it up and running! Robert :)
-
Your easiest option would be to progrmatically minimize it in
OnInitDialog
otherwise you will have to manually (text) edit your.rc
file. I believe that is where it is stored. Unfortunately I have not used VC6 in quite awhile and I am currently working console based apps. Alternatively you could create an SDI app with CFormView and remove the tool bars etc. MattThanks Matt! Robert :)