Click here to Skip to main content
11,935,053 members (53,569 online)
Rate this:
Please Sign up or sign in to vote.
See more: MFC VisualC++
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
Richard MacCutchan 23-Mar-13 6:16am
Make it smaller.
adityarao31 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 23-Mar-13 13:15pm
Looks like you have a major problem then.

1 solution

Rate this: bad
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.
adityarao31 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 23 Mar 2013
Copyright © CodeProject, 1999-2015
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