CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to find user screen resolution and font info in registry?

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Miami, FL
    Posts
    67

    Use GetSystemMetrics

    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

  3. #3
    Join Date
    Apr 1999
    Posts
    13

    Re: How to find user screen resolution and font info in registry?

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured