Client OnPaint not being called

434 views
Skip to first unread message

drich...@secondstory.com

unread,
Mar 27, 2013, 11:04:28 PM3/27/13
to cef...@googlegroups.com
I'm trying to render offscreen. 

I'm using the CfeWebBrowser Control and I modified it slightly so that was created with a windowInfo that has SetAsOffScreen set.  

I've added a RenderHandler to the client, and the render handler has OnPaint properly implemented. OnPaint never gets called.  

I've tried calling Invalidate via the host but that doesn't help.

Any pointers?

Donny. 

Dmitry Azaraev

unread,
Mar 28, 2013, 3:19:46 AM3/28/13
to cef...@googlegroups.com
Check WPF OSR sample.


--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
   Dmitry

drich...@secondstory.com

unread,
Mar 28, 2013, 12:38:26 PM3/28/13
to cef...@googlegroups.com, dmitry....@gmail.com
I run the example and it doesn't appear to do anything. I enter a url and hit enter and nothing shows up.  I want to make sure I don't spend the day analyzing this example only to find that there is something wrong. Is the example supposed to show anything?

drich...@secondstory.com

unread,
Mar 28, 2013, 1:19:17 PM3/28/13
to cef...@googlegroups.com, dmitry....@gmail.com
In fact, the OnPaint method in the example is never called.  I'm using the latest version of the CEF binaries, 3.1436. Should I try using an older build?
Message has been deleted

drich...@secondstory.com

unread,
Mar 28, 2013, 1:50:52 PM3/28/13
to cef...@googlegroups.com, dmitry....@gmail.com
Weird.  The WPF osr example works in debug mode but not in release mode. They're both x86. 

Dmitry Azaraev

unread,
Apr 1, 2013, 6:18:37 AM4/1/13
to cef...@googlegroups.com
Disable vs hosting process in project options (for release configuration). In this case it will work even under debugger in VS (F5). Also you can run via CTRL+F5 (without debugger).
Reply all
Reply to author
Forward
0 new messages