#include void DrawFrame(int left, int top, int right, int bottom,int DoubleFrame) { register int i ; int U_Left=218,Horiz=196,U_Right=191,Vert=179,L_Left=192,L_Right=217; if (DoubleFrame) { U_Left = 201 ; Horiz = 205 ; U_Right = 187 ; Vert = 186 ; L_Left = 200 ; L_Right = 188 ; } gotoxy(left,top) ; putch(U_Left); /* upper left corner */ for ( i = left+1 ; i < right ; i++) putch(Horiz) ; /* horizontal stuff */ putch(U_Right) ; /* upper right corner */ for ( i = top + 1 ; i < bottom ; i++ ) { /* vertical stuff */ gotoxy(left,i) ; putch(Vert) ; gotoxy(right,i) ; putch(Vert) ; } gotoxy(left,bottom) ; putch(L_Left); /* lower left corner */ for ( i = left+1 ; i < right ; i++) putch(Horiz) ; /* horizontal stuff */ putch(L_Right) ; /* lower right corner */ }