Re: How to change Line Color created by CDC::LineTo?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Sorry I was mistyped. I need to HIDE the line and I was thinking about color
white.

1. I have tried:
CPen pen( PS_SOLID, 0, RGB( 255, 255, 255 ) );
CPen* pOldPen = pDC->SelectObject( &pen );
UINT nOldROP = pDC->SetROP2( R2_WHITE );

but it did not worked nor did the color as it was not white. It draws other
color of red and black as dots on screen so that it is disturbing the actual
displayed Line.

2. And also sometimes the actual displayed line color ALSO got changed to
that color.

How to fix it?

Thank you.

.



Relevant Pages

  • Re: How to change Line Color created by CDC::LineTo?
    ... It draws other ... color of red and black as dots on screen so that it is disturbing the actual ... The problem appears to be a moving target so I'll just answer the question in your subject and even include code: ...
    (microsoft.public.vc.mfc)
  • Re: Contacts, Remotes (etc.) Buttons Problem
    ... It dries clear and ... > I am frustrated with the contacts in my expensive cordless ... That lasted over a year before some "dots" ... It seems to me that the only way to fix this problem permanently ...
    (sci.electronics.repair)
  • Re: Scandinavian characters
    ... It cannot fix already existing mistranslations, ... I have slowly managed to build a script which handles most of the problematic characters. ... that I'll use only those letters which are used in plain English and leave dots and other umlauts out of the characters. ...
    (alt.linux)
  • Re: Krueger + Tequila + Chili + Jalapeno Cornbread =
    ... You want to "fix" my political thinking? ... How disturbing. ... Neil, ...
    (rec.music.gdead)
  • Re: Hewitt vs Nalbandian = travesty for a first round
    ... I know they fix the draws for Fed(two players who have his ... number), but this is not fair for the viewers, it should at least be a ...
    (rec.sport.tennis)