天天看點

cef3:禁止win10高dpi下cef對内部網頁進行縮放

1.使用指令行參數

//禁止cef進行dpi縮放
command_line->AppendSwitchWithValue("--force-device-scale-factor","1");
           

額外:

// Enable High-DPI support on Windows 7 or newer.
  CefEnableHighDPISupport();                


來自:http://www.lpime.cn/article/36      
cef