Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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.

IN PARVUM MULTUM

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...