Jump to content

making your compiled application DPI Aware


Recommended Posts

2 hours ago, Shark007 said:

@Deye This is the reason why there is a warning when you change resolutions that some apps may not appear correctly until you log off and back in again. I'm pretty sure this statement is addressing DPI Aware applications specifically.

I assume @Deye means the child GUI which has no DPI awareness code, thus the result is not a surprise. If it appears to the main GUI than I need to do some more investigations...:rolleyes:

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • 4 years later...
On 7/31/2019 at 5:42 PM, Shark007 said:

Method #1 - Programmatically  - Only available for Windows 8.1 and 10

That was a little bit confusing but it's seems like the Windows 8.1 and Windows 7 are using the same function.

I have modified the line to expect Windows 7 and the high DPI feature seems to be enabled and running fine:

If @OSVersion = 'WIN_81' Or 'WIN_7' Then DllCall("User32.dll", "bool", "SetProcessDPIAware")

I tried this on Windows 7 x64 Home Basic

 

For more workarounds about making your GUI High DPI aware, please check these threads:

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...