天天看點

cef3裡解決一個視窗一個程序的問題

http://blog.163.com/[email protected]/blog/static/1221545162014329615767/

在cef3中,如果不做好設定,那麼會建立一個視窗的時候建立一個程序,這是很讓人郁悶的事情,通過研究發現做如下設定就可以解決這個問題了 :):

ClientApp::void OnBeforeCommandLineProcessing( const CefString& process_type,
                                                                                            CefRefPtr<CefCommandLine> command_line)
 {
          command_line->AppendSwitch("process-per-site");
  }
           
下一篇: ICA特征提取