CEF3 c++ it don't call ::OnPaint(......)?

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.

CEF3 c++ it don't call ::OnPaint(......)?

Postby GyaoG » Thu Sep 17, 2015 8:19 pm

I find don't find call
void ClientHandler::OnPaint(CefRefPtr<CefBrowser> browser,
PaintElementType type,
const RectList& dirtyRects,
const void* buffer,
int width,
int height) {
MessageBox(NULL,L"OnPaint",L"point out",0);
if (!m_OSRHandler.get())
return;
m_OSRHandler->OnPaint(browser, type, dirtyRects, buffer, width, height);
}
,because MessageBox don't appear?Why?
GyaoG
Mentor
 
Posts: 69
Joined: Mon Jul 20, 2015 9:56 am

Re: CEF3 c++ it don't call ::OnPaint(......)?

Postby magreenblatt » Fri Sep 18, 2015 4:15 am

OnPaint is only used with off-screen rendering. Look at the cefclient sample application for the correct way to implement it.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 24 guests