IVisualProperties::SetColor-Methode (shobjidl.h)
Legt die Farbe wie angegeben fest.
Syntax
HRESULT SetColor(
[in] VPCOLORFLAGS vpcf,
[in] COLORREF cr
);
Parameter
[in] vpcf
Typ: VPCOLORFLAGS
Die Farbflags. Siehe VPCOLORFLAGS.
[in] cr
Typ: COLORREF
Ein Wert vom Typ COLORREF
Rückgabewert
Typ: HRESULT
Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.
Anforderungen
Anforderung | Wert |
---|---|
Unterstützte Mindestversion (Client) | Windows Vista [nur Desktop-Apps] |
Unterstützte Mindestversion (Server) | Windows Server 2008 [nur Desktop-Apps] |
Zielplattform | Windows |
Kopfzeile | shobjidl.h |