A
A
anikavoi2018-11-21 21:22:34
C++ / C#
anikavoi, 2018-11-21 21:22:34

What does SetProcessDPIAware() do???

Gentlemen, who can clearly say what this function does, I googled, but either my English is really bad, or I just don’t understand what it says :(
#ifdef _WIN32
::SetProcessDPIAware();
#endif

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SerJook, 2018-11-22
@SerJook

The user can set the scale other than 100% in the screen settings. By calling this function (SetProcessDPIAware), you are telling the system that your application's interface can itself scale properly at high DPI (dots per inch). If you do not set this flag, then your application's interface may look blurry at high DPI values.
But Microsoft recommends not to call this function, but to register this flag in the application manifest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question