Home | History | Annotate | Download | only in FileManager
      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 
     43 DIALOG_ID  DIALOG  0, 0, xs, ys  MY_MODAL_RESIZE_DIALOG_STYLE  MY_FONT
     44 CAPTION "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   LTEXT  "Elapsed time:",      IDT_PROGRESS_ELAPSED,   m, y0, x0s, 8
     51   LTEXT  "Remaining time:",    IDT_PROGRESS_REMAINING, m, y1, x0s, 8
     52   LTEXT  "Files:",             IDT_PROGRESS_FILES,     m, y2, x0s, 8
     53   LTEXT  "Compression ratio:", IDT_PROGRESS_RATIO,     m, y3, x0s, 8
     54   LTEXT  "Errors:",            IDT_PROGRESS_ERRORS,    m, y4, x0s, 8
     55 
     56   LTEXT  "Total size:",        IDT_PROGRESS_TOTAL,    x2, y0, x2s, 8
     57   LTEXT  "Speed:",             IDT_PROGRESS_SPEED,    x2, y1, x2s, 8
     58   LTEXT  "Processed:",         IDT_PROGRESS_PROCESSED,x2, y2, x2s, 8
     59   LTEXT  "Compressed size:"  , IDT_PROGRESS_PACKED,   x2, y3, x2s, 8
     60 
     61   RTEXT  "",  IDT_PROGRESS_ELAPSED_VAL,   x1, y0, x1s, MY_TEXT_NOPREFIX
     62   RTEXT  "",  IDT_PROGRESS_REMAINING_VAL, x1, y1, x1s, MY_TEXT_NOPREFIX
     63   RTEXT  "",  IDT_PROGRESS_FILES_VAL,     x1, y2, x1s, MY_TEXT_NOPREFIX
     64   RTEXT  "",  IDT_PROGRESS_RATIO_VAL,     x1, y3, x1s, MY_TEXT_NOPREFIX
     65   RTEXT  "",  IDT_PROGRESS_ERRORS_VAL,    x1, y4, x1s, MY_TEXT_NOPREFIX
     66 
     67   RTEXT  "",  IDT_PROGRESS_TOTAL_VAL,     x3, y0, x3s, MY_TEXT_NOPREFIX
     68   RTEXT  "",  IDT_PROGRESS_SPEED_VAL,     x3, y1, x3s, MY_TEXT_NOPREFIX
     69   RTEXT  "",  IDT_PROGRESS_PROCESSED_VAL, x3, y2, x3s, MY_TEXT_NOPREFIX
     70   RTEXT  "",  IDT_PROGRESS_PACKED_VAL,    x3, y3, x3s, MY_TEXT_NOPREFIX
     71 
     72   LTEXT  "", IDT_PROGRESS_STATUS, m, z3, xc, MY_TEXT_NOPREFIX
     73   CONTROL  "", IDT_PROGRESS_FILE_NAME, "Static", SS_NOPREFIX | SS_LEFTNOWORDWRAP, m, z2, xc, z2s
     74   
     75   CONTROL  "Progress1", IDC_PROGRESS1, "msctls_progress32", PBS_SMOOTH | WS_BORDER, m, z1, xc, z1s
     76 
     77   CONTROL  "List1", IDL_PROGRESS_MESSAGES, "SysListView32",
     78            LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,
     79            m, z0, xc, z0s
     80 }
     81