CHtmlEditCtrlBase::SetBackColor

Sets the background color of the current selection.

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

nColor

The color. See pvaIn in IDM_BACKCOLOR Command ID.

szColor

The color. See pvaIn in IDM_BACKCOLOR Command ID.

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

This method sends the IDM_BACKCOLOR_ command ID to the WebBrowser control.

Header: afxhtml.h

Community Additions

ADD
Show: