CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Singapore
    Posts
    33

    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


  2. #2
    Guest

    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);



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured