Home | History | Annotate | Download | only in GUI
      1 #include "ExtractDialogRes.h"
      2 #include "../../GuiCommon.rc"
      3 
      4 #define xc 336
      5 #define yc 168
      6 
      7 #undef g1xs
      8 #undef g2x
      9 #undef g2x2
     10 #undef g2xs
     11 #undef g2xs2
     12 
     13 #define g1xs 160
     14 
     15 #define gSpace 20
     16 #define g2x (m + g1xs + gSpace)
     17 #define g2x2 (g2x + m)
     18 #define g2xs (xc - g1xs - gSpace)
     19 #define g2xs2 (g2xs - m - m)
     20 
     21 #undef GROUP_Y_SIZE
     22 #ifdef UNDER_CE
     23 #define GROUP_Y_SIZE 8
     24 #else
     25 #define GROUP_Y_SIZE 56
     26 #endif
     27 
     28 IDD_EXTRACT  DIALOG  0, 0, xs, ys  MY_MODAL_DIALOG_STYLE  MY_FONT
     29 CAPTION "Extract"
     30 BEGIN
     31   LTEXT     "E&xtract to:", IDT_EXTRACT_EXTRACT_TO, m, m, xc, 8
     32   COMBOBOX  IDC_EXTRACT_PATH, m, m + 12, xc - bxsDots - 12, 100, MY_COMBO_WITH_EDIT
     33   PUSHBUTTON  "...", IDB_EXTRACT_SET_PATH, xs - m - bxsDots, m + 12 - 2, bxsDots, bys, WS_GROUP
     34 
     35   CONTROL   "", IDX_EXTRACT_NAME_ENABLE, MY_CHECKBOX, m, m + 34, 12, 10
     36   EDITTEXT  IDE_EXTRACT_NAME, m + 12 + 2, m + 32, g1xs - 12 - 2, 14, ES_AUTOHSCROLL
     37 
     38   LTEXT     "Path mode:", IDT_EXTRACT_PATH_MODE, m, m + 52, g1xs, 8
     39   COMBOBOX  IDC_EXTRACT_PATH_MODE, m, m + 64, g1xs, 140, MY_COMBO
     40 
     41   CONTROL   "Eliminate duplication of root folder", IDX_EXTRACT_ELIM_DUP, MY_CHECKBOX,
     42             m, m + 84, g1xs, 10
     43 
     44   LTEXT     "Overwrite mode:", IDT_EXTRACT_OVERWRITE_MODE, m, m + 104, g1xs, 8
     45   COMBOBOX  IDC_EXTRACT_OVERWRITE_MODE, m, m + 116, g1xs, 140, MY_COMBO
     46 
     47 
     48   GROUPBOX  "Password", IDG_PASSWORD, g2x, m + 36, g2xs, GROUP_Y_SIZE
     49   EDITTEXT  IDE_EXTRACT_PASSWORD, g2x2, m + 50, g2xs2, 14, ES_PASSWORD | ES_AUTOHSCROLL
     50   CONTROL   "Show Password", IDX_PASSWORD_SHOW, MY_CHECKBOX, g2x2, m + 72, g2xs2, 10
     51 
     52 //  CONTROL   "Restore alternate data streams", IDX_EXTRACT_ALT_STREAMS, MY_CHECKBOX,
     53 //            g2x, m + 104, g2xs, 10
     54   CONTROL   "Restore file security", IDX_EXTRACT_NT_SECUR, MY_CHECKBOX,
     55             g2x, m + 104, g2xs, 10
     56   
     57   DEFPUSHBUTTON  "OK",     IDOK,     bx3, by, bxs, bys, WS_GROUP
     58   PUSHBUTTON     "Cancel", IDCANCEL, bx2, by, bxs, bys
     59   PUSHBUTTON     "Help",   IDHELP,   bx1, by, bxs, bys
     60 END
     61 
     62 
     63 #ifdef UNDER_CE
     64 
     65 #undef m
     66 #define m 4
     67 
     68 #undef xc
     69 #undef yc
     70 
     71 #define xc 152
     72 #define yc 128
     73 
     74 #undef g1xs
     75 
     76 #define g1xs 64
     77 
     78 IDD_EXTRACT_2  DIALOG  0, 0, xs, ys  MY_MODAL_DIALOG_STYLE  MY_FONT
     79 CAPTION "Extract"
     80 BEGIN
     81   LTEXT     "E&xtract to:", IDT_EXTRACT_EXTRACT_TO, m, m, xc - bxsDots - 8, 8
     82   COMBOBOX  IDC_EXTRACT_PATH, m, m + 12, xc - bxsDots - 8, 100, MY_COMBO_WITH_EDIT
     83   PUSHBUTTON  "...", IDB_EXTRACT_SET_PATH, xs - m - bxsDots, m + 12 - 3, bxsDots, bys, WS_GROUP
     84 
     85   LTEXT     "Path mode:", IDT_EXTRACT_PATH_MODE, m, m + 36, g1xs, 8
     86   COMBOBOX  IDC_EXTRACT_PATH_MODE, m + g1xs, m + 36, xc - g1xs, 100, MY_COMBO
     87 
     88   LTEXT     "Overwrite mode:", IDT_EXTRACT_OVERWRITE_MODE, m, m + 56, g1xs, 8
     89   COMBOBOX  IDC_EXTRACT_OVERWRITE_MODE, m + g1xs, m + 56, xc - g1xs, 100, MY_COMBO
     90 
     91   LTEXT     "Password", IDG_PASSWORD, m, m + 76, g1xs, 8
     92   EDITTEXT  IDE_EXTRACT_PASSWORD, m + g1xs, m + 76, xc - g1xs, 14, ES_PASSWORD | ES_AUTOHSCROLL
     93   CONTROL   "Show Password", IDX_PASSWORD_SHOW, MY_CHECKBOX, m, m + 92, xc, 10
     94   
     95   OK_CANCEL
     96 END
     97 
     98 #endif
     99