home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / database / nyisam / screen.h < prev   
Encoding:
C/C++ Source or Header  |  1994-04-26  |  1.4 KB  |  69 lines

  1. /*---------------------------------------------------------------------
  2.  File: screen.h
  3.  ---------------------------------------------------------------------*/
  4. #ifndef _SCREEN
  5. #define _SCREEN
  6.  
  7. #ifndef _GENERAL
  8. #include <general.h>
  9. #endif
  10.  
  11. #define MAXWIDTH 80
  12. #define MAXHEIGHT 25
  13.  
  14. typedef struct _screen {
  15.     int y;
  16.     int x;
  17.     char *string;
  18. } SCREEN;
  19.  
  20. typedef struct _window
  21. {
  22.     int top;
  23.     int left;
  24.     int width;
  25.     int depth;
  26.     int shadow;
  27.     char *save;
  28.     int is_open;  /* needed for version 1.00 */
  29.     struct _window *prev_window;
  30.     struct _window *next_window;
  31.     char atr;
  32. }WINDOW,*PWINDOW;
  33.  
  34. #define    INIT                1
  35. #define    RESTORE                2
  36. #define    GET_MODE            3
  37. #define    GET_CURSOR            4
  38. #define    SET_CURSOR_TYPE        5
  39. #define    SET_CURSOR            6
  40. #define    SELECT_PAGE            7
  41. #define    CLEAR_PAGE            8
  42. #define    CURR_PAGE            9
  43. #define    PUT_CHAR            10
  44. #define    PUT_STRING            11
  45. #define    OPEN_WINDOW            12
  46. #define    CLOSE_WINDOW        13
  47. #define    CREATE_WINDOW        14
  48. #define    DESTROY_WINDOW        15
  49. #define    REFRESH_WINDOW_ABS    16
  50. #define    SET_ATRIB            17
  51. #define    REPOSITION_WINDOW    18
  52. #define    GET_CURSOR_ABS        19
  53. #define    SET_CURSOR_ABS      20
  54. #define    REFRESH_WINDOW        21
  55. /*-- cursor attributes ---*/
  56.  
  57. #define    NORMAL        0x0708
  58. #define    INVISIBLE    0x1700
  59. #define    FAT            0x0408
  60.  
  61. /*-- vector interups ---*/
  62. #define CRIT 0x24
  63.  
  64. extern int cdecl Screen( int *wHandle, int mode, ... );
  65. extern void WriteStrings( int *wHandle, SCREEN *scr_desc, char atr );
  66. extern int CriticalError;
  67.  
  68. #endif
  69.