How to set monitor scaling to recommended or desired scaling with c++ ?

Jaka Kostanjevec 0 Reputation points
2023-08-24T10:16:37.58+00:00

I am trying to set scaling to windows recommended scaling or to desired one (100%,150%,...) for monitor in C++. I have monitor handles (type: HMONITOR). Is that enough or do I need anything else how would I set scaling from code.

Windows development | Windows API - Win32
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2023-08-24T10:27:34.51+00:00

    You can change scaling with SystemParametersInfo and SPI_SETLOGICALDPIOVERRIDE

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.