There are some functions in the Shell :
ColorHLSToRGB
ColorRGBToHLS
or in MS sources :
ColorConversion.cpp
How To Converting Colors Between RGB and HLS (HBS)
How to convert UIRibbon type UI_HSBCOLOR to COLORREF and vice versa
harborsiem
1
Reputation point
How to convert UIRibbon type UI_HSBCOLOR to COLORREF and vice versa.
Is there any api or code that I can use for a converter (translator) for the ribbon specific type UI_HSBCOLOR to COLORREF (or .NET Color type). The Microsoft documentation Convert RGB to HSB
is not really helpful because there are different converters for RGB to HSL with different results. The colors I get or set with these converters are not really the same I can see in the Ribbon.
Any help possible ?
Windows development | Windows API - Win32
2,793 questions
1 answer
Sort by: Most helpful
-
Castorix31 90,696 Reputation points
2023-01-01T12:55:35.463+00:00