minimize app on startup 
Author Message
 minimize app on startup

I want the option in my app "win32" that will allow the
user to set the program to minimize on startup.
I tryed the ShowWindow(hWnd,"any of the minimize flags")
function, but that just made the program always minimized.
I want to allow the user to click on it in the taskbar and
have it act like normal window. How do I do this?


Sun, 28 Dec 2003 18:17:59 GMT  
 minimize app on startup
Ok It was staying minimized because I used ShowWindow at
wm_create. Is there a better message to attach this to? I
Looking for a message at startup of program, but after
creation of window. Something like WM_SHOWWINDOW except
the message is just executed one time.
Quote:
>-----Original Message-----
>I want the option in my app "win32" that will allow the
>user to set the program to minimize on startup.
>I tryed the ShowWindow(hWnd,"any of the minimize flags")
>function, but that just made the program always
minimized.
>I want to allow the user to click on it in the taskbar
and
>have it act like normal window. How do I do this?
>.



Sun, 28 Dec 2003 20:36:12 GMT  
 minimize app on startup

Quote:
> I want the option in my app "win32" that will allow the
> user to set the program to minimize on startup.

I'm not sure I understand the question. But if you want to give the user the
option to start the program minimized and also have the window restore
itself when it's "taskbar button" is clicked then create a preference in the
registry or an .ini file. When you start up read the preference. If set call
ShowWindow() with one of SW_MINIMIZE, SW_SHOWMINNOACTIVE, or
SW_SHOWMINIMIZED

Regards,
Will



Sun, 28 Dec 2003 23:58:25 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to minimize a CDialog app at startup?

2. Again: minimizing dialog-based app on startup....

3. Dialog based app minimize on startup???/

4. Minimizing after startup frees up resources???

5. Minimizing Connect/Startup time?

6. Minimizing a dialog-based application on startup...?

7. Minimizing Dialog Window on Startup

8. Setting SelectedIndex at App Startup

9. app startup...

10. placing app in windows startup

11. I don't want Child Window on app startup

12. Hiding main window of my app at startup

 

 
Powered by phpBB® Forum Software