home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / c / WNDWC21.ZIP / EX1.C next >
Encoding:
C/C++ Source or Header  |  1989-08-01  |  596 b   |  21 lines

  1. /*   EXAMPLE 1:  Your first window
  2.      ----------------------------------------------------------------------*/
  3.      #include <stdio.h>
  4.      #include <conio.h>
  5. #ifdef __TURBOC__
  6.      #include <alloc.h>
  7. #else
  8.      #include <malloc.h>
  9. #endif
  10.      #include "wndwc21.h"
  11.  
  12.      void main()
  13.      {
  14.          qinit();
  15.          initwindow( LIGHTGRAY_BG, 1, 0 );  /* Initialize and clear window */
  16.          makewindow( 5, 20, 15, 40, WHITE+BLUE_BG, CYAN+BLUE_BG,
  17.                      SINGLE_BORDER, AWINDOW );
  18.          wwritec( 7, "Making windows is easy!" );
  19.          getch();
  20.      }
  21.