delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

m_Tab.SetRedraw(TRUE);
m_Tab.Invalidate();
m_Tab.UpdateWindow();
That's what I'm working with at the moment, but I still see the tabs being cycled through.  Does anyone have any ideas?


I have a document editor where each document is in a tab.  During the save code, each tab is selected and various things happen to it.  I want to shut off screen updates for the tab control so the user doesnt see each tab being selected.
My problem is that CWnd::SetRedraw isn't shutting off updates to the controls.
Code:
  1. m_Tab.SetRedraw(FALSE);
  2. // loop through each tab and do stuff
  3. m_Tab.SetRedraw(TRUE);
  4. m_Tab.Invalidate();
  5. m_Tab.UpdateWindow();
Copy Code
That's what I'm working with at the moment, but I still see the tabs being cycled through.  Does anyone have any ideas?

TOP

I added
Code:
  1. this->SetRedraw(FALSE)
Copy Code
(this is the window thats the parent of the tab control)
and it seems to help out a lot.  I'm still curious as to why setting redraw on a specific control isn't shutting off the redraw for it...?



m_Tab.SetRedraw(TRUE);
m_Tab.Invalidate();
m_Tab.UpdateWindow();
That's what I'm working with at the moment, but I still see the tabs being cycled through.  Does anyone have any ideas?

TOP

Back Forum