How to convert UIRibbon type UI_HSBCOLOR to COLORREF and vice versa

harborsiem 1 Reputation point
2023-01-01T11:20:06.963+00:00

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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,696 Reputation points
    2023-01-01T12:55:35.463+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.