Hi Asha,
You are still there with the same problem??!!??
Just go through the CPen::CPen function and you will be able to solve the problem.

But one thing, if you draw the line with the background color, You definitely will not see the line since
both are of the same color.

Anyway all the best


Bye
Vittal