When I debugged, I found that the createbrowser interface returned false. What's the problem? The following is my code, I hope you can help me deal with the problem:
Code:
WebPush *web = new WebPush();
web->Create(IDD_DIALOG3);
CefWindowInfo window_info;
CRect rt;
rt.left = 0;
rt.right = 1000;
rt.top = 0;
rt.bottom = 500;
window_info.SetAsChild(GetSafeHwnd(), rt);
CefRefPtr<SimpleHandler> handler(new SimpleHandler(true));
CefBrowserSettings browser_settings;
std::string url;
url = "http://www.Google.com";
bool test = CefBrowserHost::CreateBrowser(window_info, handler.get(), url, browser_settings, NULL, NULL);
web->SetWindowPos(this, g_rect[1].left, g_rect[1].top, g_rect[1].right - g_rect[1].left, g_rect[1].bottom - g_rect[1].top, SWP_SHOWWINDOW);