Declaring high DPI awareness per window on Windows 8

前端 未结 2 1991
野的像风
野的像风 2020-12-06 03:25

I\'m developing audio plugins that run within a host such as Cubase, and I\'m looking to add High DPI support. This is problematic because all host applications that I know

2条回答
  •  执笔经年
    2020-12-06 04:14

    You are out of luck here. DPI awareness is a process wide setting. In Windows 8.1 you can declare the process to be DPI aware on a per monitor basis.

    And as Raymond comments above, no amount of engineering would enable API functions like GetCursorPos to have per-window DPI awareness, since such functions are not passed windows.

提交回复
热议问题