home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser 2002 January / STC_CD_01_2002.iso / GAMES / BOINKO21 / SRC / SRC / WINS.H < prev    next >
C/C++ Source or Header  |  2000-02-16  |  1KB  |  40 lines

  1. /********************************************/
  2. /*                                            */
  3. /*                    WINS.H                    */
  4. /*                 jan 18 1996                */
  5. /*                 Dan Ackerman                */
  6. /*                                            */
  7. /*        My window struct includes            */
  8. /*                                            */
  9. /********************************************/
  10.  
  11. struct win_info
  12. {
  13.     int handle;
  14.     OBJECT *window_obj; /* RSC object for window */
  15.     int status; /* 1 = Normal, 2 = Rolled up, 3 = Iconified */
  16.     char *title;
  17.     GRECT curr;
  18.     int page;
  19.     int cur_item;
  20.     int edit_pos;
  21.     char *text_block;
  22.     long  buf_size;
  23.     int   total_items;
  24.     int      edit; /* 0 = NO, 1 = Set it */
  25.     OBJECT *icon_obj; /* The windows iconified icon */
  26.     GRECT icon; /* icon_ are the redraw points for the iconified window */
  27.     int type; /* 0 - Closer (w_type), 1 - No closer (w_type2) */
  28. };
  29.  
  30. extern struct win_info win[MAX_WINDOWS];
  31.  
  32. #ifndef SMALLER
  33. #define SMALLER 0x4000
  34. #endif
  35.  
  36. /*#define W_TYPE (NAME | MOVER | CLOSER | FULLER | SMALLER) disabled FULLER */
  37. #define W_TYPE (NAME | MOVER | CLOSER | SMALLER)
  38. #define W_T2 (NAME | MOVER | FULLER | SMALLER)
  39. #define W_T3 (NAME | MOVER)
  40.