MSDN: 1. 设置当前进程或者线程对dpi设置的感知 SetProcessDpiAwarenessContext function (winuser.h) - Win32 apps | Microsoft DocsSets the current process to a specified dots per inch (dpi) awareness context. The DPI awareness contexts are from the DPI_AWARENESS_CONTEXT value.https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setprocessdpiawarenesscontext