frame size
-
When i run my application in my system the application window is looking good.But when i run my application in another system which has monitor size less than my system,scroll bar's are added both vertically and horizontally to the application window which is not looking good . Is there any way to restict the frame size auomatically during runtime so that no slide bars are added to it based on the environment in which we run.
-
When i run my application in my system the application window is looking good.But when i run my application in another system which has monitor size less than my system,scroll bar's are added both vertically and horizontally to the application window which is not looking good . Is there any way to restict the frame size auomatically during runtime so that no slide bars are added to it based on the environment in which we run.
When you create the main window, are the width and height parameters hard coded? If you used the resource editor the answer is probably yes. Use the function
GetSystemMetrics()
to find the screen size, and resize the window withSetWindowPos()