共用方式為


CHtmlEditCtrlBase::GetForeColor

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

HRESULT GetForeColor(
   int & nColor 
);

Parameters

  • nColor
    The foreground 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

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::SetForeColor

CHtmlEditCtrlBase::GetBackColor