i am doing drawings on dialof in MFC vc++.
i am drawing lines as per the different inputs i am getting from the serial.
now i want to clear the drawings when i get another input.
What I have tried:
CPen lDot(PS_DASH, 2, RGB(255, 255, 255));
Here a,b,c,d are my different inputs which i am getting from the serial communication.
at each input i want to clear the older drawings and draw a new lines with new data.
is the group box in which i am drawing lines in dialog.