Nicolas060297
asked on
Xor function behavior
I am using the Xor function behavior in a device context with the following method: CDC::SetROP2(XORPEN). It works quite well as far as drawing lines is concerned, but doesn't work with text.
My problem is that I want this behavior for a line and a text simultaneously. How is it possible?
Thanks, Nicolas,
My problem is that I want this behavior for a line and a text simultaneously. How is it possible?
Thanks, Nicolas,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
MyObject::Draw(CDC* pDC)
{
....
CBrush myBrush = pDC->SelectBrush(backgroun
CSize TextSize = pDC->GetTextExtent(myText)
pDC->TextOut(x,y, myText);
pDC->PatBlt(x,y,TextSize.c
}
The function Draw is called twice : one for drawing, one for erasing, and it doesn't work properly