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