[win32] - how can i avoid flickers on controls? :(
Jan 30, 2014 at 8:45pm UTC
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?
Jan 31, 2014 at 3:39am UTC
i could by wrong
either you need to time you drawing operations better
or try using a backbuffer
Jan 31, 2014 at 1:21pm UTC
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 :(
Jan 31, 2014 at 1:44pm UTC
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.
Jan 31, 2014 at 10:19pm UTC
javedjuss: what you mean by that?
seems that i avoid the flicker(not 100%, but it's realy better):
2 3 4 5 6 7 8
SetWindowPos(hwnd, 0, 0, 0, c.right, c.bottom,
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.