Category : Files from Magazines
Archive   : D-FLAT.ZIP
Filename : DIALBOX.H

 
Output of file : DIALBOX.H contained in archive : D-FLAT.ZIP
/* ----------------- dialbox.h ---------------- */

#ifndef DIALOG_H
#define DIALOG_H

#include

#define MAXCONTROLS 25

#define OFF NULL
#define ON ((void *)-1)

typedef struct {
char *title; /* window title */
int x, y; /* relative coordinates */
int h, w; /* size */
} DIALOGWINDOW;

typedef struct {
DIALOGWINDOW dwnd;
int class; /* LISTBOX, BUTTON, etc */
char *itext; /* initialized text */
char *vtext; /* variable text */
int command; /* command code */
void *wnd; /* window handle */
} CTLWINDOW;

typedef struct {
DIALOGWINDOW dwnd;
CTLWINDOW ctl[MAXCONTROLS+1];
} DBOX;

#define DIALOGBOX(db) DBOX db={
#define DB_TITLE(ttl,x,y,h,w) {ttl,x,y,h,w},{
#define CONTROL(ty,tx,x,y,h,w,c) {{NULL,x,y,h,w},ty,tx,NULL,c},
#define ENDDB }};

#define Cancel " Cancel "
#define Ok " OK "
#define Yes " Yes "
#define No " No "

#endif


  3 Responses to “Category : Files from Magazines
Archive   : D-FLAT.ZIP
Filename : DIALBOX.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/