Is there any way to draw Webbrowser content to a specific DC?

后端 未结 2 1091
谎友^
谎友^ 2021-01-15 16:44

These days, I tries to create a hiden WebBrowser control in my program, and Using the IViewObject interface draw to my custom DC.

The result is fine, I got All the c

相关标签:
2条回答
  • 2021-01-15 17:05

    Try this: http://sourceforge.net/projects/wke/

    char* buffer = new char[800*600*4];
    IWebVeiw* webView = wkeCreateWebView("");    
    webView->resize(800, 600);
    webView->loadURL("www.google.com");
    webView->paint(buffer, 0);
    wkeDestroyWebView(webView);
    
    0 讨论(0)
  • 2021-01-15 17:16

    There is no other way to do this. None of the components you're using--IE, Flash, etc--were designed to be used this way. If draw time is an issue, you have to do it on a separate thread and synchronize.

    0 讨论(0)
提交回复
热议问题