Solved

Maximizeing an MFC SDI Frame window

Posted on 1997-06-12
1
717 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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now