QUOTE(KYA @ 31 May, 2008 - 03:53 PM)

If these are standard drawing mechanisms from the WinAPI, an application restart will erase the screen. Unless you mean a button the user presses after a certain amount of time in which case, you can invalidate the window and force a repaint with whatever the background color is.
The project is a simulation of a network and these lines indicate the connection of a device . There's a routine that disconnects a device from the network and that requires a specific line to be deleted or..."Unpainted" . Moreover i've got a "clear simulation" button that will erase all results and schemes so that you can start over from the beggining , and that also requires all the lines to be deleted .
It has to be a code that deletes a line ... I had a thought about repainting the same line .. with white color . (That didn't work)