• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#undef bxs
2#define bxs 80
3
4#define x0s MY_PROGRESS_LABEL_UNITS_START
5#define x1s MY_PROGRESS_VAL_UNITS
6#define x2s MY_PROGRESS_LABEL_UNITS_START
7#define x3s MY_PROGRESS_VAL_UNITS
8
9#define x1 (m + x0s)
10#define x3 (xs - m - x3s)
11#define x2 (x3 - x2s)
12
13#undef y0
14#undef y1
15#undef y2
16#undef y3
17#undef y4
18
19#undef z0
20#undef z1
21#undef z2
22#undef z3
23
24#define y0 m
25#define y1 (y0 + k)
26#define y2 (y1 + k)
27#define y3 (y2 + k)
28#define y4 (y3 + k)
29
30#define z3 (y4 + k + 1)
31
32#define z2 (z3 + k + 1)
33#define z2s 24
34
35#define z1 (z2 + z2s)
36
37#define z0 (z1 + z1s + m)
38#define z0s 48
39
40#define yc (z0 + z0s + bys)
41
42
43DIALOG_ID  DIALOG  0, 0, xs, ys  MY_MODAL_RESIZE_DIALOG_STYLE  MY_FONT
44CAPTION "Progress"
45{
46  DEFPUSHBUTTON  "&Background", IDB_PROGRESS_BACKGROUND, bx3, by, bxs, bys
47  PUSHBUTTON     "&Pause",      IDB_PAUSE,               bx2, by, bxs, bys
48  PUSHBUTTON     "Cancel",      IDCANCEL,                bx1, by, bxs, bys
49
50
51  LTEXT  "Elapsed time:",      IDT_PROGRESS_ELAPSED,   m, y0, x0s, 8
52  LTEXT  "Remaining time:",    IDT_PROGRESS_REMAINING, m, y1, x0s, 8
53  LTEXT  "Files:",             IDT_PROGRESS_FILES,     m, y2, x0s, 8
54
55  LTEXT  "Errors:",            IDT_PROGRESS_ERRORS,    m, y4, x0s, 8
56
57
58  LTEXT  "Total size:",        IDT_PROGRESS_TOTAL,    x2, y0, x2s, 8
59  LTEXT  "Speed:",             IDT_PROGRESS_SPEED,    x2, y1, x2s, 8
60  LTEXT  "Processed:",         IDT_PROGRESS_PROCESSED,x2, y2, x2s, 8
61  LTEXT  "Compressed size:"  , IDT_PROGRESS_PACKED,   x2, y3, x2s, 8
62  LTEXT  "Compression ratio:", IDT_PROGRESS_RATIO,    x2, y4, x2s, 8
63
64
65  RTEXT  "",  IDT_PROGRESS_ELAPSED_VAL,   x1, y0, x1s, MY_TEXT_NOPREFIX
66  RTEXT  "",  IDT_PROGRESS_REMAINING_VAL, x1, y1, x1s, MY_TEXT_NOPREFIX
67  RTEXT  "",  IDT_PROGRESS_FILES_VAL,     x1, y2, x1s, MY_TEXT_NOPREFIX
68  RTEXT  "",  IDT_PROGRESS_FILES_TOTAL,   x1, y3, x1s, MY_TEXT_NOPREFIX
69  RTEXT  "",  IDT_PROGRESS_ERRORS_VAL,    x1, y4, x1s, MY_TEXT_NOPREFIX
70
71  RTEXT  "",  IDT_PROGRESS_TOTAL_VAL,     x3, y0, x3s, MY_TEXT_NOPREFIX
72  RTEXT  "",  IDT_PROGRESS_SPEED_VAL,     x3, y1, x3s, MY_TEXT_NOPREFIX
73  RTEXT  "",  IDT_PROGRESS_PROCESSED_VAL, x3, y2, x3s, MY_TEXT_NOPREFIX
74  RTEXT  "",  IDT_PROGRESS_PACKED_VAL,    x3, y3, x3s, MY_TEXT_NOPREFIX
75  RTEXT  "",  IDT_PROGRESS_RATIO_VAL,     x3, y4, x3s, MY_TEXT_NOPREFIX
76
77  LTEXT  "", IDT_PROGRESS_STATUS, m, z3, xc, MY_TEXT_NOPREFIX
78  CONTROL  "", IDT_PROGRESS_FILE_NAME, "Static", SS_NOPREFIX | SS_LEFTNOWORDWRAP, m, z2, xc, z2s
79
80  CONTROL  "Progress1", IDC_PROGRESS1, "msctls_progress32", PBS_SMOOTH | WS_BORDER, m, z1, xc, z1s
81
82  CONTROL  "List1", IDL_PROGRESS_MESSAGES, "SysListView32",
83           LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,
84           m, z0, xc, z0s
85}
86