Click to See Complete Forum and Search --> : How to maximise window when application starts


Steve Chia
May 10th, 1999, 07:59 PM
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

May 10th, 1999, 11:54 PM
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);