Solved

How do I make my Program Resolution Independent

Posted on 1998-04-14
4
246 Views
Last Modified: 2013-11-20
I'm developing an application in VC++5.0 using MFC. My application is Form based (Forms are created using CFormView class) and I switch from one form(view) to another using the push button controls on the Form.My problem is that  when I run the program under different resolutions, it's appearence changes. The form(view)s  covers the entire screen (i.e.,I have maximised the Main Frame window and MDI child windows using appropriate functions), but the controls on the form don't grow or shrink proportionally. So, it gives a very ugly look to my application when run under a different resolution. I have developed the application at 800* 600 display resolution and it's MDI based Document View application.
0
Comment
Question by:akshaya
[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
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
ID: 1317685
There is a shareware (I think) library called NSViews that does automatic resizing/moving of controls when views/forms/dialogs change in size.

0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1317686
0
 

Author Comment

by:akshaya
ID: 1317687
Thanks Mr. Ronslow . I have already developed the application and it's running fine. I only need to fix the resolution problem. But, if I adopt your solution, I may have to rewrite the entire application using the NSViews library that you have suggested. My application is a big one consisting of odd 20 or more forms and it would be a very tedious task to rewrite the entire thing. Do you have any other suggestion? Please help.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1317688
If you know your dialog looks fine at 800x600 and you detect you are running at, say, 400x300, then you could simply go thru each child window of the view (ie. the controls) and get their positions and scale the size and/or position accordingly.  This is effectively what the NSViews library does.. only it gives you more control over how each control is effected by a change in size.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

617 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