CHtmlEditCtrlBase::GetFontFace

检索字体名当前选择。

HRESULT GetFontFace(
   CString& strFace 
) const;

参数

  • strFace
    字体名称。

返回值

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

备注

如果当前选定内容使用多个字体,strFace 将为空字符串。

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

要求

Header: afxhtml.h

请参见

参考

CHtmlEditCtrlBase选件类

CHtmlEditCtrlBase::SetFontFace

CHtmlEditCtrlBase::GetFontSize