Partager via


CHtmlEditCtrlBase::SetForeColor

Sets the foreground (text) color of the current selection.

HRESULT SetForeColor( 
   LPCTSTR szColor  
) const; 
HRESULT SetForeColor( 
   int nColor  
) const;

Parameters

  • szColor
    The color.

  • nColor
    The color.

Return Value

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

Remarks

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

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::GetForeColor

CHtmlEditCtrlBase::SetBackColor