◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── The _setwindow function defines a window viewport. The arguments (<wx1>, <wy1>) specify the upper-left corner of the window, and the arguments (<wx2>, <wy2>) specify the lower-right corner of the window. The <finvert> argument specifies the direction of the coordinates. If <finvert> is TRUE, the y axis increases from the screen bottom to the screen top (Cartesian coordinates). If <finvert> is FALSE, the y axis increases from the screen top to the screen bottom (screen coordinates). Any window transformation done with the _setwindow function applies only to the viewport and not to the entire screen. If <wx1> equals <wx2> or <wy1> equals <wy2>, the function fails. Note that this function only affects output functions suffixed with _w or _wxy. See also: ◄Graphic Coordinate Systems► Return Value The function returns a nonzero value if successful. If the function fails (e.g., if it is not in a graphics mode), it returns 0. -♦-