home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / 680 / examples / wopen.c < prev    next >
C/C++ Source or Header  |  1994-03-14  |  514b  |  25 lines

  1. /*
  2. ** WOPEN.C: Creates a window and displays some text in it.
  3. */
  4.  
  5. #include <pictor.h>
  6.  
  7. void main()
  8. {
  9.    /* initialize library */
  10.    initvideo();
  11.    vcolor(foreback(BOLD+WHITE,BLUE)); cls();
  12.  
  13.    /* create a window and write some text in it */
  14.    wopen(5,6,17,70,foreback(BLACK,WHITE),WO_SHADOW);
  15.    wputs("Hello, world. wputs() here!\n\nPress any key");
  16.  
  17.    /* wait for user to press a key */
  18.    kbdread();
  19.    wclose();
  20.  
  21.    /* restore screen */
  22.    vcolor(foreback(WHITE,BLACK));
  23.    cls();
  24. }
  25.