CHtmlEditCtrlBase::SetFontFace

将当前选定的字体。

HRESULT SetFontFace( 
   LPCTSTR szFace  
) const;

参数

  • szFace
    字体名称。

返回值

返回在成功的S_OK或在失败时错误HRESULT。

备注

此方法 IDM FONTNAME命令ID 发送到浏览器控件。

要求

Header: afxhtml.h

请参见

参考

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::GetFontFace

CHtmlEditCtrlBase::SetFontSize