
2. Multiple window display library
------------------------------------------------------------------------------
2.1 Open window. <Main>
------------------------------------------------------------------------------
[Name]
win_open
[Syntax]
#include <crt.h>
whandle win_open( winfo *spec, char *title, int flag ) ;
typedef int whandle ; /* window handle */
typedef struct _winfo {
unsigned int posl ; /* window line position */
unsigned int posc ; /* window column position */
unsigned int sizev ; /* window vertical size */
unsigned int sizeh ; /* window horizontal size */
} winfo ;
[Arguments]
spec window geometry(position& size) structure
title window title string
flag window attribute
[Return]
Returns window handle if successful. When failed, returns "-1" and
sets following error code to the global variable "errno".
EW_SPEC Invalid window position or size is specified.
EW_MAX Attempted to open a window beyond the limit
of maximum number of windows(MAX-WIN).
[Description]
Creates new window on the screen.
A window of the specified size is created and placed on the screen at
the specified position.