共用方式為


CHtmlEditCtrlBase::GetBackColor

Retrieves the background color of the current selection.

HRESULT GetBackColor(
   int& nColor 
) const;

Parameters

  • nColor
    The background color.

Return Value

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

Remarks

This method sends the IDM_BACKCOLOR Command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::SetBackColor

CHtmlEditCtrlBase::GetForeColor