Re: Flickering
From: Janiv Ratson (janiv_at_aoe6.net)
Date: 05/24/04
- Previous message: Jerry Coffin: "Re: Flickering"
- In reply to: Jerry Coffin: "Re: Flickering"
- Next in thread: Jerry Coffin: "Re: Flickering"
- Reply: Jerry Coffin: "Re: Flickering"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 May 2004 11:13:57 +0200
10x all,
your advice has solved the problem.
I had to make all work in on Erase Background.
10x again.
Now I have a new problem, I M sure it is because of me being newibie.
I may sound silly, but I need your help so much ...
So the problem is that now, the background is redrawn and not flickers, but
the buttons (or other controls) which are located on the background, are
redrawn (because OnEraseBackground is called?) so the effect is seen clearly
and ugly.
Is there anyway preventing the buttons to redrawn (I think not).
Is there anyway to redraw the buttons without seeing that ugly effect
(deleting and redrawing, like light flickering effect).
10x,
(I hope I was clear ...)
10x,
Janiv.
"Jerry Coffin" <jcoffin@taeus.us> wrote in message
news:MPG.1b1a5d66cf7a8b5e98971a@msnews.microsoft.com...
> In article <uY0ihqMQEHA.2404@TK2MSFTNGP12.phx.gbl>, janiv@aoe6.net
> says...
> > Hi,
> > I M drawing a wallpaper on my CView class, I have to redraw it every
time
> > the user click on that view.
>
> Why do you have to redraw it every time the user clicks on the view?
> You normally only have to redraw things if they've been obscured, or
> the view changes.
>
> > Because of that any time the user click on the
> > View the wallpaper is redrawn and flickers.
> > Why? How do I prevent that ?
>
> The most common cause of flicker in a situation like this is allowing
> the background to be erased normally before drawing your bitmap.
> Since your bitmap is apparently (more or less) a background, you
> probably want to draw it in response to WM_ERASEBKGND.
>
> --
> Later,
> Jerry.
>
> The universe is a figment of its own imagination.
- Previous message: Jerry Coffin: "Re: Flickering"
- In reply to: Jerry Coffin: "Re: Flickering"
- Next in thread: Jerry Coffin: "Re: Flickering"
- Reply: Jerry Coffin: "Re: Flickering"
- Messages sorted by: [ date ] [ thread ]