I have another question, how do I initialize the value of user_style_sheet_location in CefBrowserSettings, I initialized like this:
- Code: Select all
CefSettings setting ;
CefBrowserSettings browserDefaults ;
browserDefaults.user_style_sheet_enabled = true ;
browserDefaults.user_style_sheet_location.str = new TCHAR[MAX_PATH] ;
_tcscpy(browserSettings.user_style_sheet_location.str, file:///H://20110411//cef_binary_r181_VS2005-VS2008//build//Release//style.css) ;
CefInitialize(setting, browserDefaults) ;
But it does not work, the style.css seems not loaded into CEF object. Do I need to do anything else ?
Thanks for your advice.