Solved

Maximizeing an MFC SDI Frame window

Posted on 1997-06-12
1
726 Views
Last Modified: 2012-05-04
No matter how I combine WS_MAXIMIZE with cs.style in CMainFrame::PreCreateWindow, when I execute the application it does not maximize. Please can you supply the correct syntax from an app that has actually been tried and works!
0
Comment
Question by:turnpike
1 Comment
 
LVL 1

Accepted Solution

by:
ramshank earned 50 total points
ID: 1163899
As you have noticed  changing the styles in the  CreateStruct of PreCreateWindow to WS_MAXIMIZE does not work.To maximize the Frame Window just add the statement
ShowWindow(SW_SHOWMAXIMIZED);
before the "return 0" statement  of the OnCretae function in the  CMainframe. This would solve your problem.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question