I use Digital Visual Fortran 6.1 on a Windows 98 platform. My computer is set to a screen resolution of 1024 x 768 pixels. I have created several "single window" standard graphic applications that work very well on my computer. If I install and run these applications on a computer with a screen resolution of 800 x 600 pixels (many in my company use this setting) a portion of the window may not be visible or accessible on the screen. Is there any method to automaticaaly adjust to the user's resolution? Any input will be greatly appreciated.
链接已复制
1 回复
Take a look at
- SystemParametersInfo (SPI_GETWORKAREA) (screen size without taskbar & other eventual appbars)
- GetSystemMetrics
* SM_CXMAXIMIZED - should be the same as SPI_GETWORKAREA
* SM_CXSCREEN - resolution of primary monitor
* SM_CXVIRTUALSCREEN - takes into account multiple monitors
Jugoslav
- SystemParametersInfo (SPI_GETWORKAREA) (screen size without taskbar & other eventual appbars)
- GetSystemMetrics
* SM_CXMAXIMIZED - should be the same as SPI_GETWORKAREA
* SM_CXSCREEN - resolution of primary monitor
* SM_CXVIRTUALSCREEN - takes into account multiple monitors
Jugoslav
