BOOL SetDesignMode(BOOL bMode);
HRESULT ExecCommand(const GUID *pGuid, long cmdID, 
  long cmdExecOpt, VARIANT* pInVar=NULL, VARIANT* pOutVar=NULL);
HRESULT ExecCommand(long cmdID, long cmdExecOpt, 
  VARIANT* pInVar=NULL, VARIANT* pOutVar=NULL);
long QueryStatus(long cmdID);
HRESULT GetEvent(IHTMLEventObj **ppEventObj);
HRESULT GetEventSrcElement(IHTMLElement **ppSrcElement);
HRESULT GetDocument(IHTMLDocument2** ppDoc);
HRESULT NewDocument();
HRESULT GetDocumentHTML(CString& szHTML, 
  BOOL a_bClearDirtyFlag = FALSE);
HRESULT SetDocumentHTML(LPCTSTR szHTML);
HRESULT GetIsDirty();
HRESULT GetDocumentTitle(CString& szTitle);
HRESULT GetBlockFormatNames(CStringArray &sa);
HRESULT SetForeColor(LPCTSTR szColor);
HRESULT SetForeColor(int nColor);
HRESULT GetForeColor(int &nColor);
HRESULT GetBackColor(int& nColor);
HRESULT SetBackColor(LPCTSTR szColor);
HRESULT SetBackColor(int nColor);

解决方案 »

  1.   

    http://www.codeproject.com/editctrl/HtmlEdit.asp
    \HRESULT GetBlockFormat(CString& strFormat);
    HRESULT SetBlockFormat(LPCTSTR szFormat);
    HRESULT GetFontFace(CString& strFace);
    HRESULT SetFontFace(LPCTSTR szFace);
    HRESULT IE50Paste(LPCTSTR szData);
    HRESULT GetBookMark(CString& strAnchor);
    HRESULT SetBookMark(LPCTSTR szAnchorName);
    HRESULT SetOverwriteMode(bool bMode);
    HRESULT Is1DElement(bool& bValue);
    HRESULT Is2DElement(bool& bValue);
    HRESULT GetFontSize(short& nSize);
    HRESULT SetFontSize(unsigned short size);
    HRESULT GetFrameZone(short& nZone);
    HRESULT SetCSSEditingLevel(short nLevel);
    HRESULT HyperLink(LPCTSTR szUrl = NULL);
    HRESULT Image(LPCTSTR szUrl = NULL);
    HRESULT OrderList(LPCTSTR szId = NULL);
    HRESULT UnorderList(LPCTSTR szId = NULL);HRESULT AddToGlyphTable(LPCTSTR szTag,
                LPCTSTR szImgUrl,
                unsigned short nTagType,
                unsigned short nAlignment,
                unsigned short nPosInfo,
                unsigned short nDirection,
                unsigned int nImgWidth,
                unsigned int nImgHeight);HRESULT EmptyGlyphTable();
    HRESULT Button(LPCTSTR szId = NULL);
    HRESULT CheckBox(LPCTSTR szId = NULL);
    HRESULT DropDownBox(LPCTSTR szId = NULL);
    HRESULT HorizontalLine(LPCTSTR szId = NULL);
    HRESULT Iframe(LPCTSTR szId = NULL);
    HRESULT InsFieldSet(LPCTSTR szId = NULL);
    HRESULT InsInputButton(LPCTSTR szId = NULL);
    HRESULT InsInputHidden(LPCTSTR szId = NULL);
    HRESULT InsInputImage(LPCTSTR szId = NULL);
    HRESULT InsInputPassword(LPCTSTR szId = NULL);
    HRESULT InsInputReset(LPCTSTR szId = NULL);
    HRESULT InsInputSubmit(LPCTSTR szId = NULL);
    HRESULT InsInputUpload(LPCTSTR szId = NULL);
    HRESULT ListBox(LPCTSTR szId = NULL);
    HRESULT Marquee(LPCTSTR szId = NULL);
    HRESULT Paragraph(LPCTSTR szId = NULL);
    HRESULT RadioButton(LPCTSTR szId = NULL);
    HRESULT SaveAs(LPCTSTR szPath = NULL);
    HRESULT TextArea(LPCTSTR szId = NULL);
    HRESULT TextBox(LPCTSTR szId = NULL);
    HRESULT GetAbsolutePosition(bool &bCurValue);
    HRESULT SetAbsolutePosition(bool bNewValue);
    HRESULT Set2DPosition(bool bNewValue);
    HRESULT SetAtomicSelection(bool bNewValue);
    HRESULT SetAutoURLDetectMode(bool bNewValue);
    HRESULT SetDisableEditFocusUI(bool bNewValue);
    HRESULT SetIE5PasteMode(bool bNewValue);
    HRESULT SetLiveResize(bool bNewValue);
    HRESULT SetMultiSelect(bool bNewValue);
    HRESULT SetOverrideCursor(bool bNewValue);
    HRESULT SetRespectVisInDesign(bool bNewValue);
    HRESULT GetShowAlignedSiteTags(bool &bCurValue);
    HRESULT SetShowAlignedSiteTags(bool bNewValue);
    HRESULT GetShowAllTags(bool &bCurValue);
    HRESULT SetShowAllTags(bool bNewValue);
    HRESULT GetShowAreaTags(bool &bCurValue);
    HRESULT SetShowAreaTags(bool bNewValue);
    HRESULT GetShowCommentTags(bool &bCurValue);
    HRESULT SetShowCommentTags(bool bNewValue);
    HRESULT GetShowMiscTags(bool &bCurValue);
    HRESULT SetShowMiscTags(bool bNewValue);
    HRESULT GetShowScriptTags(bool &bCurValue);
    HRESULT SetShowScriptTags(bool bNewValue);
    HRESULT GetShowStyleTags(bool &bCurValue);
    HRESULT SetShowStyleTags(bool bNewValue);
    HRESULT GetShowUnknownTags(bool &bCurValue);
    HRESULT SetShowUnknownTags(bool bNewValue);
    HRESULT GetShowBRTags(bool &bCurValue);
    HRESULT SetShowBRTags(bool bNewValue);
    HRESULT PrintDocument();
    HRESULT PrintDocument(LPCTSTR szPrintTemplate);
    HRESULT PrintDocument(bool bShowPrintDialog);
    HRESULT PrintPreview();
    HRESULT PrintPreview(LPCTSTR szPrintTemplate);
    HRESULT Bold();
    HRESULT Copy();
    HRESULT Cut();
    HRESULT Delete();
    HRESULT Indent();
    HRESULT Italic();
    HRESULT JustifyCenter();
    HRESULT JustifyLeft();
    HRESULT JustifyRight();
    HRESULT Outdent();
    HRESULT Paste();
    HRESULT RemoveFormat();
    HRESULT SelectAll();
    HRESULT Underline();
    HRESULT Unlink();
    HRESULT ClearSelection();
    HRESULT Font();
    HRESULT RefreshDocument();
    HRESULT UnBook();
      

  2.   

    晕倒,怎么是mfc的啊。搂主要的是C#