I have a Static window created and try to use it as parent for my browser window. (the static window is visible and works fine)
(I'm using WTL for handling windows. This code is in the OnInitDialog of my main window)
- Code: Select all
m_CefHandler = new ClientHandler();
CefWindowInfo info;
RECT rect;
::GetClientRect(m_BrowserWindow.m_hWnd, &rect);
info.SetAsChild(m_BrowserWindow.m_hWnd, rect);
CefBrowser::CreateBrowser(info, false, m_CefHandler, L"http://www.google.com");
Thanks for any help!