User interface size and monitor resolution
-
I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot
-
I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot
depends on the type of app ... am assuming a dialog app so you could maybe simply make two dialog box templates and load whichever one was reqd ... that way u could avoid all the icky movable layout stuff
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com -
I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot
You can make your app to handle WM_DISPLAYCHANGE message and use GetSystemMetrics() to get the screen size. To resize your window, either you can maximize it, or in a dialog base app, use CResizeCtrl by Herbert Menke http://www.codeproject.com/dialog/resizectrl.asp[^] Hope this will help Allen
-
I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot
You can handle the WM_SIZE message and move your dialog controls to fit the space defined by GetClientRect. Michael :-) Time flies like an arrow. Fruit flies like a banana
-
You can make your app to handle WM_DISPLAYCHANGE message and use GetSystemMetrics() to get the screen size. To resize your window, either you can maximize it, or in a dialog base app, use CResizeCtrl by Herbert Menke http://www.codeproject.com/dialog/resizectrl.asp[^] Hope this will help Allen