Reprint please indicate the original source, thank you ~ ~
Some days ago with Wke kernel encapsulated duilib WebKit Browser Control, a lot of friends private chat I hope I can publish the source code, today the control of the source and use of the demo published. In fact, this control package is not difficult, I just follow the original author's demo, the corresponding message encapsulated into duilib corresponding.
In this first to thank the author of the Wke kernel Blzfans and Soui2 interface Library author Flyhigh,blzfans streamlined WebKit kernel package for Wke and published the source code, Flyhigh processing Wke to make it easier to transplant to DUI project. Wke Core 10M large, plus video playback module 15M. I stood on the shoulders of giants and simply encapsulated the kernel.
In recent years WebKit kernel seems to be very hot, duilib already have WebBrowser control, why also to encapsulate a WebKit kernel browser control? The reasons are as follows:
1) It is well known that there are many versions of IE, from the classic IE6 to the latest IE11, but they do not have a unified implementation standard, resulting in the same Web files in different versions of IE browser effect is not the same.
2) using the IE kernel browser is less efficient, and needless to say, we all know
3) The realization of C + + and the Web page of the interactive function is too cumbersome, have done C + + and IE mutual friends must have deep experience, need to write a bunch of code to complete, and this Wke kernel only need a few lines of code can complete C + + control Web page, JS control C + +.
4) The Wke core fully supports the latest CSS3 and HTML5 technologies.
For the C + + control Web page and JS control C + + features, see the blog I wrote earlier, "to the WebKit kernel browser Control add interactive function", I will not repeat, I demonstrated in the demo JS control C + +. Mouse moved into the red area and then moved out, will pop up the dialog box, this is JS active call C + + example, in order to prevent the exposure of personal information, I put the Web page for the simplest background, we live to see ~ ~
In the C + + code I have some comments, you can test the various sites on their own.
Duilib WebKit Kernel Browser Control Source and demo has been synced to my personal maintenance of the Duilib library, now the version has fixed the page of the Select label can not display the problem, my personal library address: Click to open the link
or download from CSDN resources: Click to open the link
If you find something wrong with my demo, or if there is a problem with the encapsulated control, please contact me!
Redrain 2014.8.13
http://blog.csdn.net/zhuhongshu/article/details/38540711
Based on the Wke package of Duilib WebKit Browser Control, can C + + and JS cross-exchange, source code and demo