[win32] - how can i avoid flickers on controls? :(

i'm buiding controls on a class and seems ok. but when i move the mouse and change the text,on label(STATIC class), the flicker is showed :(
can i avoid it?
i could by wrong

either you need to time you drawing operations better
or try using a backbuffer
my problem is the SetWindowPos() and autosize to true. so can i use the function avoiding the flicker?
if i use the WS_EX_COMPOSITED, i lose the mouse move message :(
Hey! It is like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with some images to drive the content home a bit, besides that, this is great forum post. A good read. I will definitely revisit again.
http://www.bcpartners-llc.com/
javedjuss: what you mean by that?


seems that i avoid the flicker(not 100%, but it's realy better):
1
2
3
4
5
6
7
8
 SetWindowPos(hwnd, 0, 0, 0, c.right, c.bottom,
                SWP_NOZORDER|SWP_NOMOVE|SWP_NOACTIVATE);
            RECT b;
            b.left=getLeft();
            b.top=getTop();
            b.right=getLeft()+getWidth();
            b.bottom=getTop()+getHeight();
            InvalidateRect(hwnd,&b,false);

1 - the SetWindowPos() don't use the SWP_DRAWFRAME and SWP_FRAMECHANGED;
2 - we must Invalidate the control.

i have 1 problem with STATIC been transparent: the older text isn't clean, before the new one. the text is showed 1 above other... can anyone advice me for avoid these problem?
Topic archived. No new replies allowed.