Jump to content
Software FX Community

Re: How to convert from OLE_COLOR to COLORREF

User (Legacy)

Recommended Posts

I tried passing null as the pallet parameter, and the value I got from the

function was the same I put in. For example, I'm notified that a series got

it's color changed to bright yellow, which has the ole color value of

0x100000B. The corresponding COLORREF value should be somewhere around

0x000FFFF, but OleTranslateColor(...) just gave me back the 0x100000B value.

Stephan Klaffer wrote in message


>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


>> 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...