Solved

How to ersase pics in dialog

Posted on 1998-10-11
2
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

687 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