共用方式為


CHtmlEditCtrlBase::SetFontFace

Sets the font for the current selection.

HRESULT SetFontFace(
   LPCTSTR szFace 
) const;

Parameters

  • szFace
    The font name.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

This method sends the IDM FONTNAME Command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::GetFontFace

CHtmlEditCtrlBase::SetFontSize