Click here to Skip to main content
16,015,393 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

How am I to find the difference between display setting when it set to 100 or 150
I want to show message if user set the display setting to 150(Larger-150%).

Thanks in advance
Posted

1 solution

Hi,

According to http://technet.microsoft.com/en-us/library/dn528846.aspx[^]
This API will always return 96 unless the tool that calls it is registered as DPI-aware.

You should mark your application DPI-aware.
you have 2 options to do so:

1.
add this xml to to your manifest file:
XML
<asmv3:application xmlns:asmv3="#unknown">
    <asmv3:windowssettings xmlns=""http://schemas.microsoft.com/SMI/2005/WindowsSettings"">
      <dpiaware>Per monitor</dpiaware>
    </asmv3:windowssettings>
</asmv3:application>


2.
call `SetProcessDPIAware` function on your application.
information: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633543%28v=vs.85%29.aspx[^]


hope it help...
:)
 
Share this answer
 

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



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