Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello !

I would like to adapt some geometry parts of the GUI
to the currently active Windows 7 font scaling persent -

without to manifeset the application as DPI awared (yet).

Is it possible to get the OS' percent value in this context, please ? :)

The following assertion is never failed now, even at 150% scaling:

ASSERT(96 == ::GetDeviceCaps(::GetDC(NULL), LOGPIXELSX));

Thank you ! :)
Posted

1 solution

Thanks, the following storing place seems to be right for me:

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\\AppliedDPI :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900