SetRedraw
An application calls SetRedraw to allow changes to be redrawn or to prevent changes from being redrawn.
void SetRedraw(BOOL bRedraw = TRUE)
EX1
//Please make sure you have a worksheet window exist when you run the example int Window_SetRedraw_ex1() { WorksheetPage testWks = Project.WorksheetPages(0); Window testWin = testWks.GetWindow(); testWin.ShowWindow(SW_NORMAL); testWin.SetRedraw(FALSE); // turn drawing off // // Update Window // testWin.SetRedraw(TRUE); // turn drawing back on and update the window testWin.Invalidate(); testWin.UpdateWindow(); return 1; }
origin.h