EnableNonClientDpiScaling function (winuser.h) - Win32 apps
In high-DPI displays, enables automatic display scaling of the non-client area portions of the specified top-level window. Must be called during the initialization of that window.