Re: Is there a way to change foreground color depending on backgound color?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jim (spam_at_ihug.com.au)
Date: 05/21/04


Date: Fri, 21 May 2004 15:23:32 +1000

On Thu, 20 May 2004 23:12:39 -0400, "Jaime Stuardo"
<jstuardo@manquehue.net> wrote:

>Hi all...
>
>I have a list control that paints the background of an item depending on
>what the user has configured. Is there a way to accomodate automatically the
>color of the text so that the item will be readable?
>
>For example, if the user decided to use red background for certain items,
>the text of those items need to be drawn using other color, for example,
>white.
>
>Any help will be greatly appreciated
>Thanks
>Jaime
>

Draw using XOR mode.

Jim



Relevant Pages