cef3:禁止win10高dpi下cef对内部网页进行缩放

[ 2018-10-02 ]

1.使用命令行参数

//禁止cef进行dpi缩放

command_line->AppendSwitchWithValue("--force-device-scale-factor","1");

额外:

// Enable High-DPI support on Windows 7 or newer.

CefEnableHighDPISupport();