以下代码在dos/turbo_C2.0编译通过,并使用良好,只是没有注释,
我也忘了,大家根据函数名猜吧。
http://leadgenius.cublog.cn//* gpopup.h */
#define Ctrwin 999
#define xul wc.viewinfo.left
#define yul wc.viewinfo.top
#define xlr wc.viewinfo.right
#define ylr wc.viewinfo.bottom
enum windowtype{popup,tile};
typedef struct wincolors_struct{
struct linesettingstype lineinfo;
struct fillsettingstype fillinfo;
struct textsettingstype textinfo;
struct linesettingstype brdinfo;
strct viewporttype viewinfo;
char border_type;
unsigned char border_color,text_xolor,hilite_color,back_color;
}wincolors;
typedef struct winstruct{
char *name;
void *image;
struct winstruct *under,*over;
wincolors wc;
int wd,t;
int xsave,ysave;
enum windowtype wtype;
}windesc;
extern windesc *base_win;
extern windesc *curr_win;
extern wincolors dercolors;
extern int graphdriver;
extern int graphmode;
extern char *pathdriver;
#define rmv_win(w) (view_win(w,0))
#define slct_ein(w) (view_win(w,1))
extern void init_win(void);
extern windesc *draw_win(int x,int y,int wd,int ht,char *title,
enum windowtype wt,wincolors *wc);
extern void clr_win(void);
extern void view_win(windesc *this,int select);
extern void chgviewport(windesc *this);
extern void swap_image(windesc *w);