home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / MSC_WIND.ZIP / WINDOWS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1987-12-06  |  1.3 KB  |  50 lines

  1. #include <conio.h>
  2. #include <graph.h>
  3. #include <dos.h>
  4. #include <memory.h>
  5. #include <malloc.h>
  6.  
  7. #define BLACK        0x00
  8. #define BLUE         0x01
  9. #define GREEN        0x02
  10. #define CYAN         0x03
  11. #define RED          0x04
  12. #define MAGENTA      0x05
  13. #define BROWN        0x06
  14. #define LIGHTGRAY    0x07
  15. #define DARKGRAY     0x08
  16. #define LIGHTBLUE    0x09
  17. #define LIGHTGREEN   0x0A
  18. #define LIGHTCYAN    0x0B
  19. #define LIGHTRED     0x0C
  20. #define LIGHTMAGENTA 0x0D
  21. #define YELLOW       0x0E
  22. #define WHITE        0x0F
  23. #define UP_LEFT_CORNER         0xC9
  24. #define UP_RIGHT_CORNER        0xBB
  25. #define DOWN_LEFT_CORNER       0xC8
  26. #define DOWN_RIGHT_CORNER      0xBC
  27. #define HORZ_LINE              0xCD
  28. #define VERT_LINE              0xBA
  29. #define MAX_WINDOW_NUMBER      16
  30.  
  31. struct window_boundaries
  32.   {
  33.   int current_window;
  34.   char far *hold_address[MAX_WINDOW_NUMBER];
  35.   short cursor_row[MAX_WINDOW_NUMBER];
  36.   short cursor_col[MAX_WINDOW_NUMBER];
  37.   short fore_color[MAX_WINDOW_NUMBER];
  38.   short back_color[MAX_WINDOW_NUMBER];
  39.   short up_row[MAX_WINDOW_NUMBER];
  40.   short up_col[MAX_WINDOW_NUMBER];
  41.   short down_row[MAX_WINDOW_NUMBER];
  42.   short down_col[MAX_WINDOW_NUMBER];
  43.   } window;
  44.  
  45.   int makewindow();
  46.   int unmakewindow();
  47.   void set_video_mode();
  48.   int video_mode_set;
  49.   int video_base;
  50.