?
Solved

Set size of client area of SDI app.

Posted on 1999-12-22
2
Medium Priority
?
322 Views
Last Modified: 2013-11-20
I created a SDI app. using AppWizard and I want to be able to set the initial size of the window ( client area ) when the application is launched.  I assume it's as easy as knowing the function's name and where to insert it in the project.  Thanks for any help...
0
Comment
Question by:halen
2 Comments
 

Author Comment

by:halen
ID: 2301435
Edited text of question.
0
 
LVL 23

Accepted Solution

by:
chensu earned 120 total points
ID: 2301475
You need to use the following functions in the CView::OnCreate or CFrameWnd::OnCreate.

::AdjustWindowRectEx
CWnd::GetStyle
CWnd::GetExStyle
CWnd::SetWindowPos
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
Suggested Courses

593 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