2.2.6.32.30 Window::SetRedraw

Description

An application calls SetRedraw to allow changes to be redrawn or to prevent changes from being redrawn.

Syntax

void	SetRedraw(BOOL bRedraw = TRUE)

Parameters

bRedraw
Specifies the state of the redraw flag. If this parameter is TRUE, the redraw flag is set; if FALSE, the flag is cleared.

Return

Examples

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;
}

Remark

See Also

Header to Include

origin.h