Solved

Maximize on Execute

Posted on 1998-07-24
5
210 Views
Last Modified: 2013-11-20
I want the view that pops up when you execute the program to be maximized when  it pops up, How to do that?Or How do you increase the size of the client space?
0
Comment
Question by:sram
  • 3
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 20 total points
ID: 1319709
Use: CWnd::ShowWindow(SW_SHOWMAXIMIZED) in your program to maximize the application window.
0
 

Author Comment

by:sram
ID: 1319710
Where do I do this ?(In what file? In What function/class...)
0
 

Author Comment

by:sram
ID: 1319711
Where do I do this ?(In what file? In What function/class...)
0
 
LVL 32

Expert Comment

by:jhance
ID: 1319712
I can't tell you based on what you have posted.  About all I know is that you have an MFC app since this is the area where you posted your question.  Is it a dialog application, MDI, SDI?  
0
 
LVL 32

Expert Comment

by:jhance
ID: 1319713
You can call CWnd::ShowWindow() anywhere in your application where there is a valid CWnd object to call it against.  Once your main windows has been created you have a CWnd and can call it.  
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

760 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

18 Experts available now in Live!

Get 1:1 Help Now