我是用剪贴板保存html格式字符串,然后paste()到htmleditview中。
结果,htmleditview原原本本的忠实再现我的字符串在view中。
我要怎么才能把html格式的字符串插入到html源码中。
大虾快来呀!!!!!!!!!!!!!!!!!

解决方案 »

  1.   

    IHTMLDocument2::execCommand Method--------------------------------------------------------------------------------Executes a command on the current document, current selection, or the given range.SyntaxHRESULT execCommand(
        BSTR cmdID,
        VARIANT_BOOL showUI,
        VARIANT value,
        VARIANT_BOOL *pfRet
    );cmdID
    [in] VARIANT of type VT_BSTR that specifies the command to execute. This command can be any of the command identifiers that can be executed in scriptPaste  Overwrites the contents of the clipboard on the current selection. pass a BSTR "Paste" as the cmdID
      

  2.   

    我是使用.net
    其中CString怎么转换成VARIANT