|
-
May 5th, 1999, 12:21 AM
#1
Window Maximizing problems
Env: Windows NT 4.0 SP3, VC++ 6.0
Hi,
I want my application to start in maximized window mode everytime. To do
this, I use the following in my CWinApp derived class,
m_pMainWnd->ShowWindow(SW_MAXIMIZE);
*BUT*, the application first comes up in a small window and then resizes to
fill the entire screen. Why is this happening ? Is there no way to display
it in maximized mode in the first shot itself ?
To test whether I'm doing something wrong, I created a new project and set
the window state to Maximized using the AppWizard itself. I notice the same
problem here as well.
Does anyone know of a technique to display the app in full screen in the
first shot itself?
Thanks,
With Regards,
Anuj Seth
-
May 5th, 1999, 02:05 AM
#2
Re: Window Maximizing problems
You could try catching the PreCreateWindow for your mainframe and setting the initial size to be the full work area (You can get this by calling SystemParametersInfo with param SPI_GETWORKAREA). However, in this case you will have a normal window which takes up the full work area as opposed to a maximized window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|