winframe class : MoveWindow(int,int,int,int) method
Changes the position and size of the window.
winframeInstance.MoveWindow(int left, int top, int width, int height)
|int||left||A distance between the left of the screen and the left of a window.|
|int||top||A distance between the top of the screen and the top of a window.|
|int||width||A width of the window.|
|int||height||A height of the window.|
|bool||A value indicating whether it succeeded.|
winframe winframeIns = wfp.GetActive(); // Gets a window that has focus.
bool success = winframeIns.MoveWindow(0,0,1000,600);
If the window has been displayed at normal size and the method has been executed successfully, it will return true. Otherwise it returns false.
In the case above, please note that even if the position and size are the same, it returns true if the method ran successfully.
If the window has been maximized or minimized, the size and position of the window do not change by executing this method. In this case, the false will be returned.
The unit of argument is physical pixel.
Links for reference