cef in mfc with custom frame

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.

cef in mfc with custom frame

Postby WinAx » Tue Oct 14, 2014 6:41 am

I have a mfc application with CMainFrame, CChildView
in CMainFrame::OnCreate call
Code: Select all
SetWindowLong(GetSafeHwnd(), GWL_STYLE, WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX);

after that default frame is gone
in CChildView::OnPaint I draw custom frame
in CChildView::OnEraseBkgnd return 1
in frame Chromium Embedded Framework 3.1750.1738 (multi_threaded_message_loop = true)
during resizing, frame flashes (disappears and you can see the contents of the background windows)
flicker is only on windows 7 (tested on two pc)
No flicker on virtual machines with XP, win7/8
No flicker on a laptop with XP

what I can do to fix it?
WinAx
Newbie
 
Posts: 3
Joined: Tue Oct 14, 2014 6:19 am

Re: cef in mfc with custom frame

Postby saibot75 » Tue Jun 23, 2015 1:14 am

I've got the same problem, also using a custom subclass of CFrameWnd.
Flickers badly during resize in Win 7 Aero desktop with contents from background windows
flashing through. Problem is not visible on Win 7 Basic desktop, have not tried XP or Win8 yet.

Did you manage to solve the problem?

Best,
Tobias
saibot75
Newbie
 
Posts: 1
Joined: Tue Jun 23, 2015 1:07 am

Re: cef in mfc with custom frame

Postby dongboy » Sat Oct 31, 2015 7:33 am

same problem,Is there a way to solve this problem?
dongboy
Newbie
 
Posts: 1
Joined: Sat Oct 31, 2015 7:28 am


Return to Support Forum

Who is online

Users browsing this forum: ndesktop and 45 guests