How to use EDrawModeXOR?

Login to reply to this topic.
Mon, 2005-11-14 15:11
Joined: 2003-11-28
Forum posts: 35
hello,

I want to draw a selection rect for my custom control.

How to use SetDrawMode(CGraphicsContext::EDrawModeXOR); in my Draw() function ?

thanks.

Thu, 2005-12-08 13:47
Joined: 2003-12-05
Forum posts: 672
Re: How to use EDrawModeXOR?
Code:
aGc.SetDrawMode(CGraphicsContext::EDrawModeNOTXOR);
iLine->Draw(aGc);  // Draw away the old line.
iLine->SetLowerRight(aPoint);
iLine->Draw(aGc); // Draw in the new line.
  • Login to reply to this topic.