Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets or retrieves the background color of the current selection.
C++ Information
Command group CGID_MSHTML (defined in mshtmhst.h) Symbolic constant IDM_BACKCOLOR User interface None. Set nCmdExecOpt to OLECMDEXECOPT_DONTPROMPTUSER. IOleCommandTarget::Exec parameters pvaInVARIANT of type VT_BSTR or VT_I4 that specifies the new color. If pvaIn is a VT_BSTR, the value can be a color name or a string representing a six-digit hexadecimal RGB color value, with or without a leading hash mark, as defined in the Color Table. If pvaIn is a VT_I4, the value will be in interpreted as a COLORREF. pvaIn may be set to NULL.pvaOutVARIANT of type VT_I4 that receives a COLORREF value. If the current selection uses more than one back color, pvaOut will return a VARIANT of type VT_NULL. Set pvaIn to NULL to retrieve information to pvaOut.Header file mshtmcid.h Applies to IHTMLDocument2::execCommand, IHTMLDocument2::queryCommandEnabled, IHTMLDocument2::queryCommandIndeterm, IHTMLDocument2::queryCommandState, IHTMLDocument2::queryCommandSupported, IHTMLDocument2::queryCommandValue, IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus.
Remarks
The HTML generated by this command may vary depending on the version of Windows Internet Explorer.
Minimum Availability
Internet Explorer 4.0 and later.