Solved

Maximizeing an MFC SDI Frame window

Posted on 1997-06-12
1
732 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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…
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.

726 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