Hello,

I want to erase a dotted rectangle using XOR . How to do this.

I want to use it to draw a selection rectangle into a custom control.

So what code to add in my Draw() function ?

Draw(const TRect& aRect) const
{
iBitmapContext->SetDrawMode(CGraphicsContext::EDrawModeXOR);
iBitmapContext->DrawRect(aRect);
if(IsFocused())
......................
else
.......................
}

Thanks.