05-14-2016 02:42 AM
Hello,
I have drawed two lines in a canvas control, I'd like to know if there is a method to erase one of a line but just reserve anothere one?
David
05-30-2016 06:13 AM
Hi David
Set the canvas pen attribute to XOR
SetCtrlAttribute (hWnd_Image, IMG_CANVAS, ATTR_PEN_MODE,VAL_XOR_MODE)
than draw your line..
when you want to erase the line draw it again with the same coordinates
when drawing the same line twice in xor mode the origunal canvas back ground will apear
Goo Luck
Daniel