Page 1 of 1

CEF 85 SUPPORT MULTI TAB, How to implement it?

PostPosted: Wed Sep 23, 2020 6:46 pm
by MichaelLLG
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?

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

PostPosted: Thu Sep 24, 2020 2:50 am
by ndesktop
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.