window_coords(_c)
status.i4.v = window_coords(window_id.i2.r, left_column.i4.r,
top_row.i4.r, right_column.i4.r,
bottom_row.i4.r)
status.i4.v = window_coords_c(window_id.i2.v, left_column.i4.r,
top_row.i4.r, right_column.i4.r,
bottom_row.i4.r)
This routine returns the screen coordinates for the window
indicated by "window_id". If any coordinate value is not needed,
a value of NULL may be passed for that argument. (Note: If
the requested window does not exist, a value of 0 will be
returned for all coordinate values.)
window_id window ID (use WMNGR_BACKGROUND for background window)
left_column returned left column of the window
(full screen coordinates)
top_row returned top row of the window
(full screen coordinates)
right_column returned right column of the window
(full screen coordinates)
bottom_row returned bottom row of the window
(full screen coordinates)
This function returns ACNET status values as follows:
OK success
CBS_INVARG invalid number of columns or window ID
CBS_NO_WINDOW requested window does not exist
This function requires the following include files:
cnsparam_h, cbslib_h
Related functions:
window_coordinate_limits_c, window_read_scroll_region_c,
window_set_scroll_region_c, screen_row(_c), screen_column(_c),
intro_tv_windows
C/C++ usage:
short window_id;
int status;
int left_column;
int top_row;
int right_column;
int bottom_row;
status = window_coords_c(window_id,&left_column,&top_row,
&right_column,&bottom_row);