Re: Windows DPI settings
- From: David R. Longnecker <dlongnecker@xxxxxxxxxxxxxxxx>
- Date: Tue, 17 Jul 2007 14:07:00 +0000 (UTC)
System Metrics
Microsoft® Windows® provides a number of system metrics that you should use to eliminate assumptions about the user’s system. GetDeviceCaps() can be used to obtain a display’s DPI (pass in LOGPIXELSX or LOGPIXELSY for the second parameter). GetSystemMetrics() and SystemParametersInfo() provide sizes for nearly every graphical element in Windows, from the width of a three-dimensional border to the size of a small icon. One of the less obvious metrics is the minimum line thickness (pass SM_CYBORDER or SM_CXBORDER to GetSystemMetrics). At very high DPIs, a one-pixel-wide line is nearly invisible.
http://msdn2.microsoft.com/en-us/library/ms969894.aspx
HTH.
-dl
--
David R. Longnecker
http://blog.tiredstudent.com
Hi,
is there any way how can I get the current user windows DPI settings?
We're writting some mapping software and we need to know if the user
changes the DPI for scale calculations.
Thanks
Jan
.
- Follow-Ups:
- Re: Windows DPI settings
- From: Chris Dunaway
- Re: Windows DPI settings
- References:
- Windows DPI settings
- From: jan . loucka
- Windows DPI settings
- Prev by Date: Re: migrate from .Net 2.0 to .Net 3.0
- Next by Date: .NET remote Consultant
- Previous by thread: Windows DPI settings
- Next by thread: Re: Windows DPI settings
- Index(es):
Relevant Pages
|
Loading