Board index » cppbuilder » Pause TScrollBox from repainting/updating.

Pause TScrollBox from repainting/updating.


2004-01-16 12:47:01 PM
cppbuilder83
Hi i have a large number of controls in a custom ScrollBox.
When one of the control in the ScrollBox changes its size
rest of the controls also change their size.
Is there any way to stop the ScrollBox from repainting
itself while those changes are made? Then update after the
change is done?
Thanks.
 
 

Re:Pause TScrollBox from repainting/updating.

"Jaepil Kim" < XXXX@XXXXX.COM >wrote in message
Quote
Is there any way to stop the ScrollBox from repainting
itself while those changes are made?
Before making the changes, send the ScrollBox a WM_SETREDRAW message with
the wParam value set to FALSE. When the changes are done, send the message
again with the wParam value set to TRUE instead, and then Invalidate() the
ScrollBox to update the display.
Gambit