1 /* ----------------- dialbox.h ---------------- */
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; /* LISTBOX, BUTTON, etc */
25 char *itext
; /* initialized text */
26 int command
; /* command code */
27 char *help
; /* help mnemonic */
28 BOOL isetting
; /* initially ON or OFF */
29 BOOL setting
; /* ON or OFF */
30 void *wnd
; /* window handle */
33 /* --------- one of these for each dialog box ------- */
37 CTLWINDOW ctl
[MAXCONTROLS
+1];
40 /* -------- macros for dialog box resource compile -------- */
41 #define DIALOGBOX(db) DBOX db={ #db,
42 #define DB_TITLE(ttl,x,y,h,w) {ttl,x,y,h,w},{
43 #define CONTROL(ty,tx,x,y,h,w,c) \
45 (ty==EDITBOX||ty==COMBOBOX?NULL:tx), \
46 c,#c,(ty==BUTTON?ON:OFF),OFF,NULL},
48 #define ENDDB {{NULL}} }};
50 #define Cancel " Cancel "