2.2.6.32.24 Window::MoveWindow

Description

Changes the position and dimensions.

Syntax

void MoveWindow( const RECT * lpRect, BOOL bRepaint = TRUE )

Parameters

lpRect
[input] Points to a RECT structure that specifies the new size and position in the parent windows client coordinates.
bRepaint
[input] Specifies whether Window is to be repainted.

Return

Examples

EX1

//Please make sure you have a worksheet window exist when you run the example
int Window_MoveWindow_ex1()
{
    WorksheetPage testWks = Project.WorksheetPages(0);
    Window testWin = testWks.GetWindow();
    testWin.ShowWindow(SW_NORMAL);
    
    RECT RecNew = {144, 200, 500, 600};
    testWin.MoveWindow(&RecNew);
    return 1;
}

Remark

See Also

Header to Include

origin.h