Browser window not rendered

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Browser window not rendered

Postby lazy » Fri Jul 01, 2011 3:03 am

Hi! I'm new to the CEF. My first step is just to get a visible browser window. HandleAfterCreated is never called. and I can't get the browser window to render.
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!
lazy
Newbie
 
Posts: 3
Joined: Fri Jul 01, 2011 2:56 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 106 guests