1 /* ----------------- dialbox.h ---------------- */
8 #define DF_MAXCONTROLS 30
9 #define DF_MAXRADIOS 20
14 /* -------- dialog box and control window structure ------- */
16 char *title
; /* window title */
17 int x
, y
; /* relative coordinates */
21 /* ------ one of these for each control window ------- */
24 DFCLASS
class; /* DF_LISTBOX, DF_BUTTON, etc */
25 char *itext
; /* initialized text */
26 int command
; /* command code */
27 char *help
; /* help mnemonic */
28 BOOL isetting
; /* initially DF_ON or DF_OFF */
29 BOOL setting
; /* DF_ON or DF_OFF */
30 void *wnd
; /* window handle */
33 /* --------- one of these for each dialog box ------- */
37 DF_CTLWINDOW ctl
[DF_MAXCONTROLS
+1];
40 /* -------- macros for dialog box resource compile -------- */
41 #define DF_DIALOGBOX(db) DF_DBOX db={ #db,
42 #define DF_DB_TITLE(ttl,x,y,h,w) {ttl,x,y,h,w},{
43 #define DF_CONTROL(ty,tx,x,y,h,w,c) \
45 (ty==DF_EDITBOX||ty==DF_COMBOBOX?NULL:tx), \
46 c,#c,(ty==DF_BUTTON?DF_ON:DF_OFF),DF_OFF,NULL},
48 #define DF_ENDDB {{NULL}} }};
50 #define DfCancel " Cancel "