home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
c
/
jazlib.arc
/
JZOPNWND.C
< prev
next >
Wrap
Text File
|
1986-02-09
|
651b
|
26 lines
extern THEADER g_header;
extern int _attr;
TWINDOW *jzopnwnd(fwindnum,frow,fcol,flength,fwidth,ffore,fback)
int fwindnum , frow , fcol , flength , fwidth , ffore , fback;
{
TWINDOW *pwindow;
/* allocate window and save previous contents */
pwindow = jzappend(&g_header,_attr,frow,fcol,
frow+fwidth-1,fcol+flength-1,fwindnum);
if ( pwindow ) {
color(ffore,fback);
/* set global color constants */
/* set global window constants */
window(frow+1,fcol+1,frow+fwidth-2,fcol+flength-2);
jzclrscr();
jzdrwbox(frow,fcol,flength,fwidth,_attr);
return(pwindow);
}
else return(0);
}