BaldrickThe4th Posted June 10, 2004 Posted June 10, 2004 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 Quote
pelikan Posted June 11, 2004 Posted June 11, 2004 Maybe sending WM_SETREDRAW (using the Handle of the tab control) you'd send the message with WPARAM = FALSE to the Tab control. do your updating, send the message again with WPARAM = TRUE I've 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. Quote IN PARVUM MULTUM
BaldrickThe4th Posted June 14, 2004 Author Posted June 14, 2004 Thanks..it appears to do the job. Much appreciated. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.