home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / pcw_c.zip / BOXEXMPL.C < prev    next >
Text File  |  1990-01-30  |  593b  |  25 lines

  1. #include "pcwproto.h"
  2. #include "stdio.h"
  3.  
  4. void main(void) {
  5.  
  6.    int tl, bl;
  7.    WNDPTR *wnd;
  8.    static char *msg[] = {
  9.       "Welcome to C",
  10.       "The Powerful Language",
  11.       "for",
  12.       "Major Applications Software",
  13.       NULL
  14.    };
  15.  
  16. /* Create a box with a advertisment for the C language */
  17.  
  18.    get_cursor_size(&tl,&bl); set_cursor_size(0,0);
  19.    wnd = wpush(7,19,15,60);
  20.    qfill(7,19,15,60,LIGHTGRAY,BLUE,SPACES);
  21.    bordercolor(YELLOW,BLUE); qbox(7,19,15,60);
  22.    q_block_write(9,CENTER,LIGHTGRAY,BLUE,msg);
  23.    keywait(10); wpop(wnd); set_cursor_size(tl,bl);
  24. }
  25.