Jump to content
Software FX Community

Re: How to convert from OLE_COLOR to COLORREF

User (Legacy)

Recommended Posts

You can use OLETranslateColor(), setting the handle of the palette to NULL.


"Edward Evans" <eevans@pacsim.com> wrote in message


> I've installed an events handler in my chart that get's notified when a


> has it's color changed (i.e. I've overriden Fire_ChangeColor(int, int,

> DWORD) ).


> The color the chart sends me is in OLE_COLOR format, and I need to convert

> it to COLORREF format.


> The function OleTranlateColor() requires a handle to the pallete that the

> OLE_COLOR belongs to, and I can't find any interface in the chart to get

> the pallette.


> Am I stuck?


> -Edward Evans




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...