Share via


IVisualProperties ::SetColor, méthode (shobjidl.h)

Définit la couleur, comme spécifié.

Syntaxe

HRESULT SetColor(
  [in] VPCOLORFLAGS vpcf,
  [in] COLORREF     cr
);

Paramètres

[in] vpcf

Type : VPCOLORFLAGS

Indicateurs de couleur. Consultez VPCOLORFLAGS.

[in] cr

Type : COLORREF

Valeur de type COLORREF

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

Condition requise Valeur
Client minimal pris en charge Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl.h