Solved

How to ersase pics in dialog

Posted on 1998-10-11
2
149 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 61
Whole sheet autoscrub still needed 19 50
Annoying "thing" blocks my view 4 99
Is there a simple front-end menu system. 9 88
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa‚Ķ
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

785 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