Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing lines drawn on a dialog window

Status
Not open for further replies.

bilbobaggio

Technical User
May 17, 2005
7
GB
Hi,

In my MFC app I have a button which when clicked draws a few lines in the dialog window. If the button is re-clicked i need the previously drawn lines to be erased before drawing new ones. How do I accomplish this?

Thanks
 
One way would be to redraw the previous lines in the background color. This effectively erases them. Then change your brush to the new color and draw your next set of lines.

HyperEngineer
If it ain't broke, it probably needs improvement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top