How to maximise window when application starts
Hi,
I have set the appropriate variable in the PreCreateWindow method to set the window to be maximise but somehow my window is still not maximize.
My application is a SDI with two splitter windows. The first one is similar to the outlook task window in the left and the second window is just a Form View.
Could it be that the settings ar upsetted by these two windows??
I'm not sure so please advise!! Thanks!!
Steve
Re: How to maximise window when application starts
Get rid of whatever you did in PreCreateWindow() and try this:
In the InitInstance() function of your App class, change
m_pMainWnd->ShowWindow(SW_SHOW);
to
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);