Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VC++
We have developed MDI application on 17 inch monitor in VC++ 2010 MFC.
But now management wants application to run on 10 inch laptop.
Application does not fit,it goes out of screen.
Please tell me how to fit application on smaller screen
Posted 23-Mar-13 0:33am
Comments
Richard MacCutchan at 23-Mar-13 6:16am
   
Make it smaller.
adityarao31 at 23-Mar-13 13:07pm
   
Its not possible to fit all contents on smaller screen,there are tabs on view and there are classses for dialogs.Making it smaller means almost like recreating it which is not possible
Richard MacCutchan at 23-Mar-13 13:15pm
   
Looks like you have a major problem then.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You said your app was MDI but mention tabs, views and dialogs. Strictly speaking, MDI is all views. In MDI, views will scroll if the screen is not large enough, but dialogs do not (by default) scroll, and tabs may or may not depending on how you implemented them.
 
==> If your app was designed for a larger screen and is run on a smaller screen, you will have to manually resize all dialogs (and probably tabs) to fit the smaller screen, or controls might be shown off-screen, and unavailable for use with the mouse. Keyboard shortcuts should still work even if the control is off the screen. Anything that is view based will work as is but will require scrolling by the user.
 
MessageBox() messages are resized dynamically and should take care of themselves without modification.
  Permalink  
Comments
adityarao31 at 25-Mar-13 1:57am
   
Actually when tested I seen scroll bars on smaller screen ,but it is not acceptable,application has to be displayed as it is displayed on big screen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 385
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 DamithSL 214
4 Maciej Los 192
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 23 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100