LiFan
2024-07-05 378d4b51e3112a3a27eabfd3aa97caec2bd5dafd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
 
#include "wobject/xcontrol.hpp"
#include "kobject/khtml.hpp"
 
using khtml = Hxsoft::XFrame::xcOleControlContain;
 
class xhtml : public xcontrol
{
public:
    xhtml(void* impl = nullptr) :xcontrol(impl) {}
public:
    khtml* GetKHtml()
    {
        return (khtml*)this->GetNativePtr();
    }
    int LoadHtml(xstring content)
    {
        return GetKHtml()->LoadHtml((LPTSTR)content.c_str());
    }
    int ExecWB(int cmdID, int cmdexecopt)
    {
        return GetKHtml()->ExecWB(cmdID, cmdexecopt);
    }
    int LoadText(xstring content)
    {
        return GetKHtml()->LoadText((LPTSTR)content.c_str());
    }
    IHTMLDocument2* GetHtmlDocument()
    {
        return GetKHtml()->GetHtmlDocument();
    }
    int innerHTML(KXMLDOMDocument srcTree, KXMLDOMDocument xsltTree, KXMLDOMDocument resTree)
    {
        return 1;
    }
};