Click to See Complete Forum and Search --> : How to find user screen resolution and font info in registry?


April 29th, 1999, 06:37 PM
Hi all,
I wonder where the registry info stores for user resolution and font info. I believe that everything you configured in control panel is stored in registry, am I right?
Say I have a dialog-based win32 app, it displays different when user in 1024x728 with big font and 800x600 with samll font.
Such information also can be used by browsers. Any hints?
Thanks,
Lei

Alvaro
April 29th, 1999, 07:34 PM
I don't know about the registry, but I do know about a function called GetSystemMetrics which retrieves all sorts of system-related stuff. Look it up in the docs.


Alvaro

Nilesh Gajjar
June 5th, 1999, 07:24 AM
you are right Screen Resol. and Font info are stored in Registtry, but i dont know the exact path of the registry. You can also get this info using Windows API GetSystemMatrics(). Please see MSDN help for this API. Hope it will help you........

Regarding you secong prob. You should always develop your GUI in 640 x 480 resolution, so that it can appear properly in any higher resolution. Otherwise the GUI developed under 1024 x 780 will not display properly in lower resol.

Bye
Nilesh