Re: Flickering
From: Ratson Janiv (janiv_at_013.net.il)
Date: 05/25/04
- Previous message: Tim: "Re: Using strsafe.h and va_list"
- In reply to: Jerry Coffin: "Re: Flickering"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 May 2004 18:31:24 +0200
10x I'll try it.
I have both controls and images I draw.
What does the WS_CLIPCHILDREN do ?
10x again and again & again && again,
janiv.
"Jerry Coffin" <jcoffin@taeus.us> wrote in message
news:MPG.1b1c990f438d00b2989720@msnews.microsoft.com...
> In article <e$lchcWQEHA.3264@TK2MSFTNGP10.phx.gbl>, janiv@aoe6.net
> says...
> > 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).
>
> Presumably the buttons (and other controls) are children of the
> surrounding window. In that case, you want to specify
> WS_CLIPCHILDREN when you create the parent window.
>
> If the buttons and other controls are just images you're drawing
> yourself, you have a couple of choices. One is to draw all of them
> to an off-screen bitmap, and then blit the result to the window.
>
> Another possibility is to use ExcludeClipRect on the rectangles for
> the controls before drawing the background. When you do this, you
> typically want to draw a control, then exclude its rectangle.
> Finally, when you've drawn all the controls and excluded their
> rectangles, you draw in the background. The clipping region will
> prevent it from being drawn over the controls.
>
> --
> Later,
> Jerry.
>
> The universe is a figment of its own imagination.
- Previous message: Tim: "Re: Using strsafe.h and va_list"
- In reply to: Jerry Coffin: "Re: Flickering"
- Messages sorted by: [ date ] [ thread ]