Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Drawing with out erasing

Hi,
I want to draw a rectangle over an existing drawing. That rectangle can be
resized using mouse. While drawing the new rect, previous one has to be erased.
Doing so erases the existing drawing on which i had drawn the rect. How to
do that with out erasing? (I am not doing this in OnDraw as it makes whole
drawing redrawn). Does anyone know how to do that without erasing the existing
one?

Thankx,
SUKU
[442 byte] By [SUKU] at [2007-11-10 12:52:30]
# 1 Re: Drawing with out erasing
"SUKU" <ksuku@mailcity.com> wrote:
>
>Hi,
>I want to draw a rectangle over an existing drawing. That rectangle can
be
>resized using mouse. While drawing the new rect, previous one has to be
erased.
>Doing so erases the existing drawing on which i had drawn the rect. How
to
>do that with out erasing? (I am not doing this in OnDraw as it makes whole
>drawing redrawn). Does anyone know how to do that without erasing the existing
>one?
>
>Thankx,
>SUKU

Hi
Before painting use the GDI-function SetROP2
Regards, Yuri
Yuri Kirilenko at 2007-11-11 20:52:44 >