Screen Flicker

Joined
Feb 16, 2004
Messages
22
It seems that this is the bane of our lives!!

On this occassion I want to add a tabpage to a tab control and supress painting until all the actions are complete. How do I do it?

Is there a way to suppress paint? It would be nce if suspendlayout prevented screen updates until a resumelayout.

Thanks for any suggestions
 
Maybe sending WM_SETREDRAW (using the Handle of the tab control)
youd send the message with WPARAM = FALSE to the Tab control.
do your updating,
send the message again with WPARAM = TRUE

Ive done this a lot with C++, but never with a tab control and not managed code.
when you do this the window is not repainted until you reset the redraw flag -
works wonders with the rich edit control.
 
Back
Top