The problem is how to get hWnd? Out application has the main class as follows:
- Code: Select all
class MyApp : public CefApp, public CefRenderProcessHandler, public CefBrowserProcessHandler
We tried to use CefRenderProcessHandler handlers, which returns a pointer to a browser like
- Code: Select all
OnContextCreated(CefRefPtr<CefBrowser> browser..., OnBrowserCreated(CefRefPtr<CefBrowser> browser.., OnBeforeNavigation(CefRefPtr<CefBrowser> browser ...
but in all of them GetHost() returns NULL
- Code: Select all
browser->GetHost(); //returns NULL
and there is no way to proceed with
- Code: Select all
CefWindowHandle hwnd = browser->GetHost()->GetWindowHandle();
The same happens if we try to get browser via CefRefPtr<CefFrame> frame, the browser is not null, but GetHost bings NULL.
So, we do not know how to get window handler. Mind, that in our MyApp we have no CefClient and cannot use its methods like
- Code: Select all
GetDialogHandler, GetLifeSpanHandler
So, how to do it? Thanks, Levi