Solved

How to ersase pics in dialog

Posted on 1998-10-11
2
146 Views
Last Modified: 2013-11-20
Let say I draw a line directly on a dialog.
How can I erase that line, so that it disapperas.
I know that I can get the background color, and then
paint over the line with it. But I think it is not
so god.

(What I do is drawing lines. After a line is drawn,
I will erase it and draw a new line.)

1. Is there some neutral pen that paint with the
background color?

2. Could it be that I must make some 'object' in the dialog
and paint on that, and than say to that object to
erase it self?

Please write some example how I can do these 2 alternative
solutions. Please tell me the best solution.

Thanks, Tomas
0
Comment
Question by:tko092397
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 200 total points
ID: 1323182
You can simply use InvalidateRect, and then use UpdateWindow
0
 

Author Comment

by:tko092397
ID: 1323183
thanks!!!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
method notes when mouse over in eclipse 5 68
fizzArray  challenge 1 47
matchUp  challenge 6 48
NotAlone Challenge 20 70
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now