How to resize controls with flicker-free ?
-
Dear all, I have a dialog and some common controls (buttons, statics...) on that. To resize my controls when my dialog is being resized, I used MoveWindow and SetWindowPos functions. However, this caused lots of annoying flicker. How do I prevent this problem? Thanks.
-
Dear all, I have a dialog and some common controls (buttons, statics...) on that. To resize my controls when my dialog is being resized, I used MoveWindow and SetWindowPos functions. However, this caused lots of annoying flicker. How do I prevent this problem? Thanks.
Control Panel->Display->Effects->Show window contents while dragging. Uncheck this checkbox.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
-
Control Panel->Display->Effects->Show window contents while dragging. Uncheck this checkbox.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Thanks for your quick reply. However, I still want that option checked and moving/resizing controls without any flicker.
-
Dear all, I have a dialog and some common controls (buttons, statics...) on that. To resize my controls when my dialog is being resized, I used MoveWindow and SetWindowPos functions. However, this caused lots of annoying flicker. How do I prevent this problem? Thanks.
Look up
BeginDeferWindowPos
DeferWindowPos
EndDeferWindowPos
and try using those functions instead. Iain.