Click here to Skip to main content
11,803,019 members (45,862 online)
Rate this: bad
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 22-Mar-13 23:33pm
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
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 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 335
1 KrunalRohit 291
2 F-ES Sitecore 270
3 CPallini 270
4 Sergey Alexandrovich Kryukov 234
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,735
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web04 | 2.8.151002.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