CEF 85 SUPPORT MULTI TAB, How to implement it?

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

CEF 85 SUPPORT MULTI TAB, How to implement it?

Postby MichaelLLG » Wed Sep 23, 2020 6:46 pm

I want to implement multi-tab to display two web site in CEF 85 version. How to do it? Is there any example project? I use MFC in c ++ language. VS 2015 witch I use. Can anybody help me, please?
MichaelLLG
Newbie
 
Posts: 2
Joined: Wed Sep 23, 2020 6:28 pm

Re: CEF 85 SUPPORT MULTI TAB, How to implement it?

Postby ndesktop » Thu Sep 24, 2020 2:50 am

I am not aware of a public example in C++ (and MFC nonetheless). However, you can use a CTabCtrl and associate every new browser creation with a tab using TCITEM::LPARAM.
After that, it's a matter of handling TCN_ show/hide the active browser (TCN_SELCHANGING hide current item associated browser, TCN_SELCHANGED show current item associated browser), close browser when tab item closes etc.
ndesktop
Master
 
Posts: 571
Joined: Thu Dec 03, 2015 10:10 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 4 guests