次の方法で共有


CHtmlEditCtrlBase::SetFontSize

Sets the font size for the current selection.

HRESULT SetFontSize( 
   unsigned short size  
) const;

Parameters

  • size
    The HTML font size (1-7). A value of 0 sets the font size to 1.

Return Value

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

Remarks

This method sends the IDM FONTSIZE command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::GetFontSize

CHtmlEditCtrlBase::GetFontFace