home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol13n05.zip / THINDI.ZIP / THISRC.ZIP / THINDISK.RC < prev    next >
Text File  |  1994-01-27  |  16KB  |  371 lines

  1. //===========================================================
  2. // THINDISK.RC - Resource script
  3. // Copyright (C) 1994 Douglas Boling
  4. //===========================================================
  5.  
  6. #include "windows.h"
  7. #include "thindisk.h"
  8. #include "statbar.h"
  9.  
  10. WinThinDiskIcon ICON thindisk.ico
  11.  
  12. //------------------------------------------------------------------------
  13. //  Menu Definition.  There are code dependancies on the positions
  14. // of the menus.
  15. //------------------------------------------------------------------------
  16. WinThinDiskMenu MENU {
  17.    POPUP "&File" {
  18.       MENUITEM "&Refresh",          IDM_REFRESH
  19.       MENUITEM SEPARATOR
  20.       MENUITEM "&Copy...\tF8",      IDM_COPY
  21.       MENUITEM "&Move...\tF7",      IDM_MOVE
  22.       MENUITEM SEPARATOR
  23.       MENUITEM "&Delete\tDEL",      IDM_DELETE
  24.       MENUITEM SEPARATOR
  25.       MENUITEM "E&xit",             IDM_EXIT
  26.    }
  27.    POPUP "&Search" {
  28.       MENUITEM "&Find Entry",       IDM_FIND
  29.       MENUITEM "Find &Next\tF3",    IDM_FINDNEXT
  30.       MENUITEM "Find &Previous",    IDM_FINDPREV
  31.    }
  32.    POPUP "&View" {
  33.       MENUITEM "&Invert Sort",      IDM_SORTUPDN
  34.       MENUITEM SEPARATOR
  35.       MENUITEM "Sort by &Name",     IDM_SORTNAME
  36.       MENUITEM "Sort by &Extension",IDM_SORTEXT
  37.       MENUITEM "Sort by &Size",     IDM_SORTSIZE
  38.       MENUITEM "Sort by &Date",     IDM_SORTDATE
  39.       MENUITEM SEPARATOR
  40.       MENUITEM "Show Si&ze",        IDM_SHOWSIZE
  41.       MENUITEM "Show Da&te",        IDM_SHOWDATE
  42.       MENUITEM "Show &Attributes",  IDM_SHOWATTRIB
  43.       MENUITEM "Show &Path",        IDM_SHOWPATH
  44.    }
  45.    POPUP "&Include" {
  46.       MENUITEM "Define &Include Set",IDM_INCLUDE
  47.       MENUITEM "&Edit Include Set",  IDM_INCLUDEEDIT
  48.       MENUITEM "&Delete Include Set",IDM_INCLUDEDEL
  49.       MENUITEM SEPARATOR
  50.       MENUITEM "&All Files",         IDM_INCLUDEALL
  51.    }
  52.    POPUP "&Help" {
  53.       MENUITEM "&About",            IDM_ABOUT
  54.    }
  55. }
  56. //------------------------------------------------------------------------
  57. //  Accelerator Definitions
  58. //------------------------------------------------------------------------
  59. WinThinDisk ACCELERATORS {
  60.    VK_F3,         IDM_FINDNEXT,   VIRTKEY
  61.    VK_F7,         IDM_MOVE,       VIRTKEY
  62.    VK_F8,         IDM_COPY,       VIRTKEY
  63.    VK_DELETE,     IDM_DELETE,     VIRTKEY
  64. }
  65. //---------------------------------------------------------
  66. // Refresh Dialog template
  67. //---------------------------------------------------------
  68. Refresh DIALOG 50, 20, 85, 105
  69. CAPTION "Refresh File List"
  70. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  71. FONT 8, "Helv"
  72. BEGIN
  73.    LTEXT "Select Drives then press Refresh",
  74.                          IDD_REFRESHTEXT,   5,   5,  70,  20
  75.    LISTBOX                   IDD_DRVLIST,   5,  30,  30,  70, LBS_MULTIPLESEL | WS_TABSTOP
  76.                                               
  77.    DEFPUSHBUTTON "&Refresh", IDD_REFRESH,  40,  30,  40,  15
  78.    PUSHBUTTON "&Close",             IDOK,  40,  52,  40,  15
  79. END                                          
  80. //---------------------------------------------------------
  81. // Copy Move files Dialog template
  82. //---------------------------------------------------------
  83. MoveCopyFiles DIALOG 50, 20, 220, 123
  84. CAPTION "Copy files"
  85. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  86. FONT 8, "Helv"
  87. BEGIN
  88.    LTEXT "The following files/directories are to be copied:",
  89.                             IDD_COPYTEXT,   5,   5, 205,  20
  90.    LISTBOX                  IDD_FILELIST,   5,  20, 165,  69, WS_VSCROLL | WS_HSCROLL
  91.  
  92.    LTEXT "Destination directory:",
  93.                                       -1,   5,  90, 165,  12
  94.    EDITTEXT                 IDD_DESTPATH,   5, 105, 165,  12
  95.  
  96.    DEFPUSHBUTTON "Copy",            IDOK, 175,  20,  40,  15
  97.    PUSHBUTTON "Cancel",         IDCANCEL, 175,  42,  40,  15
  98. END                                          
  99. //---------------------------------------------------------
  100. // Delete files Dialog template
  101. //---------------------------------------------------------
  102. DelFiles DIALOG 50, 20, 215,  80
  103. CAPTION "Delete files"
  104. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  105. FONT 8, "Helv"
  106. BEGIN
  107.    LTEXT "The following files/directories are to be deleted",
  108.                                       -1,   5,   5, 200,  20
  109.    LISTBOX                  IDD_FILELIST,   5,  20, 160,  55, WS_HSCROLL | WS_VSCROLL
  110.                                               
  111.    DEFPUSHBUTTON "OK",              IDOK, 170,  20,  40,  15
  112.    PUSHBUTTON "Cancel",         IDCANCEL, 170,  42,  40,  15
  113. END                                          
  114. //---------------------------------------------------------
  115. // Include files Dialog template
  116. //---------------------------------------------------------
  117. IncFiles DIALOG 50,  20, 270, 135
  118. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  119. CAPTION "Screen Files By"
  120. FONT 8, "Helv"
  121. BEGIN
  122.    LTEXT "Include set name",          -1,   5,  10,  75,  10
  123.    EDITTEXT                 IDD_SPECNAME,  85,  10, 125,  12, ES_AUTOHSCROLL
  124.    
  125.    CONTROL "File Specification", IDD_CHKFSPEC, "Button", 
  126.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  30,  75,  10
  127.    EDITTEXT                    IDD_FSPEC,  85,  30, 125,  12, ES_AUTOHSCROLL
  128.    
  129.    CONTROL "Size", IDD_CHKFSIZE, "Button", 
  130.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  50,  75,  10
  131.    EDITTEXT                    IDD_FSIZE,  85,  50,  45,  12, ES_AUTOHSCROLL
  132.    CONTROL "Above", IDD_FSIZEUP, "Button", 
  133.            WS_GROUP | BS_AUTORADIOBUTTON, 135,  50,  40,  10
  134.    CONTROL "Below", IDD_FSIZEDN, "Button", 
  135.                       BS_AUTORADIOBUTTON, 175,  50,  40,  10
  136.                       
  137.    CONTROL "Date", IDD_CHKFDATE, "Button", 
  138.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  70,  75,  10
  139.    EDITTEXT                    IDD_FDATE,  85,  70,  45,  12, ES_AUTOHSCROLL
  140.    CONTROL "Before", IDD_FDATEB, "Button", 
  141.            WS_GROUP | BS_AUTORADIOBUTTON, 135,  70,  40,  10
  142.    CONTROL "After", IDD_FDATEA, "Button",          
  143.                       BS_AUTORADIOBUTTON, 175,  70,  40,  10
  144.    CONTROL "Exact", IDD_FDATEO, "Button",          
  145.                       BS_AUTORADIOBUTTON, 215,  70,  40,  10
  146.                       
  147.    CONTROL "File Attributes", IDD_CHKFATTRS, "Button", 
  148.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  90,  75,  10
  149.  
  150.    CONTROL "Read Only", IDD_CHKFARDONLY, "Button", 
  151.             BS_AUTOCHECKBOX | WS_TABSTOP,  85,  90,  50,  10
  152.    CONTROL "Archive", IDD_CHKFAARCH, "Button", 
  153.             BS_AUTOCHECKBOX | WS_TABSTOP, 140,  90,  50,  10
  154.    CONTROL "Hidden", IDD_CHKFAHIDDEN, "Button", 
  155.             BS_AUTOCHECKBOX | WS_TABSTOP,  85, 105,  50,  10
  156.    CONTROL "System", IDD_CHKFASYSTEM, "Button", 
  157.             BS_AUTOCHECKBOX | WS_TABSTOP, 140, 105,  50,  10
  158.                       
  159.    CONTROL "Include Directories", IDD_INCDIRS, "Button", 
  160.             BS_AUTOCHECKBOX | WS_TABSTOP,   5, 120, 100,  10
  161.    CONTROL "Include empty Directories", IDD_INCEMPTYDIRS, "Button", 
  162.             BS_AUTOCHECKBOX | WS_TABSTOP, 135, 120, 120,  10
  163.  
  164.    DEFPUSHBUTTON "OK",              IDOK, 215,  10,  50,  15
  165.    PUSHBUTTON "Cancel",         IDCANCEL, 215,  30,  50,  15
  166.    PUSHBUTTON "Save as New",  IDD_SAVEAS, 215,  50,  50,  15     
  167. END
  168. //---------------------------------------------------------
  169. // Include Delete Dialog template
  170. //---------------------------------------------------------
  171. IncludeDel DIALOG 50, 20, 155,  80
  172. CAPTION "Delete Include Set"
  173. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  174. FONT 8, "Helv"
  175. BEGIN
  176.    LTEXT "Select include set to delete",
  177.                                       -1,   5,   5, 140,  20
  178.    LISTBOX                   IDD_INCLIST,   5,  20, 100,  55, WS_VSCROLL | WS_TABSTOP
  179.                                               
  180.    DEFPUSHBUTTON "Delete",          IDOK, 110,  20,  40,  15
  181.    PUSHBUTTON "Cancel",         IDCANCEL, 110,  42,  40,  15
  182. END                                          
  183. //---------------------------------------------------------
  184. // Search Dialog template
  185. //---------------------------------------------------------
  186. FindFile DIALOG 50,  20, 265, 100
  187. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  188. CAPTION "Find File"
  189. FONT 8, "Helv"
  190. BEGIN
  191.    CONTROL "File Specification", IDD_CHKFSPEC, "Button", 
  192.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  11,  75,  10
  193.    EDITTEXT                    IDD_FSPEC,  85,  10, 125,  12, ES_AUTOHSCROLL
  194.    
  195.    CONTROL "Size", IDD_CHKFSIZE, "Button", 
  196.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  31,  75,  10
  197.    EDITTEXT                    IDD_FSIZE,  85,  30,  45,  12, ES_AUTOHSCROLL
  198.    CONTROL "Above", IDD_FSIZEUP, "Button", 
  199.            WS_GROUP | BS_AUTORADIOBUTTON, 135,  31,  40,  10
  200.    CONTROL "Below", IDD_FSIZEDN, "Button", 
  201.                       BS_AUTORADIOBUTTON, 175,  31,  40,  10
  202.                       
  203.    CONTROL "Date", IDD_CHKFDATE, "Button", 
  204.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  51,  75,  10
  205.    EDITTEXT                    IDD_FDATE,  85,  50,  45,  12, ES_AUTOHSCROLL
  206.    CONTROL "Before", IDD_FDATEB, "Button", 
  207.            WS_GROUP | BS_AUTORADIOBUTTON, 135,  51,  40,  10
  208.    CONTROL "After", IDD_FDATEA, "Button",          
  209.                       BS_AUTORADIOBUTTON, 175,  51,  40,  10
  210.    CONTROL "Exact", IDD_FDATEO, "Button",          
  211.                       BS_AUTORADIOBUTTON, 215,  51,  40,  10
  212.                       
  213.    CONTROL "File Attributes", IDD_CHKFATTRS, "Button", 
  214.             BS_AUTOCHECKBOX | WS_TABSTOP,   5,  71,  75,  10
  215.  
  216.    CONTROL "Read Only", IDD_CHKFARDONLY, "Button", 
  217.             BS_AUTOCHECKBOX | WS_TABSTOP,  85,  71,  50,  10
  218.    CONTROL "Archive", IDD_CHKFAARCH, "Button", 
  219.             BS_AUTOCHECKBOX | WS_TABSTOP, 140,  71,  50,  10
  220.    CONTROL "Hidden", IDD_CHKFAHIDDEN, "Button", 
  221.             BS_AUTOCHECKBOX | WS_TABSTOP,  85,  86,  50,  10
  222.    CONTROL "System", IDD_CHKFASYSTEM, "Button", 
  223.             BS_AUTOCHECKBOX | WS_TABSTOP, 140,  86,  50,  10
  224.  
  225.    DEFPUSHBUTTON "Find",            IDOK, 220,  10,  40,  15
  226.    PUSHBUTTON "Cancel",         IDCANCEL, 220,  30,  40,  15
  227. END
  228. //---------------------------------------------------------
  229. // About Box Dialog template
  230. //---------------------------------------------------------
  231. AboutBox DIALOG 23, 20, 140, 95
  232. CAPTION "About ThinDisk"
  233. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  234. FONT 8, "Helv"
  235. BEGIN
  236.    ICON "WinThinDiskIcon",           -1,   5,   5,  16,  16
  237.    CTEXT "ThinDisk ",       IDD_PROGSTR,  40,  12,  60,  10
  238.    CTEXT "Copyright \251 1994 Douglas Boling", 
  239.                                      -1,  10,  27, 120,  10
  240.    CTEXT "First published in PC Magazine March 15, 1994 (US Edition).\nFor private, non-commercial use only. All rights reserved."
  241.                                      -1,  10,  40, 120,  38
  242.    DEFPUSHBUTTON "OK",             IDOK,  50,  80,  40,  12
  243. END
  244. //---------------------------------------------------------
  245. // Stringtable for status bar
  246. //---------------------------------------------------------
  247. STRINGTABLE {
  248.    //
  249.    //Error message strings
  250.    //
  251.    1,   "Command Canceled"
  252.    2,   "Not enough memory"
  253.    3,   "More than 32767 files"
  254.    4,   "Recursion limit reached on sort, list not completely sorted"
  255.    5,   "Disk Full"
  256.    6,   "Name too long"
  257.    7,   "Path information not allowed in file specification"
  258.    8,   "Illegal file size"
  259.    9,   "Date must be in MM-DD-YYYY format"
  260.  
  261.    DOSERROFFSET+01,  "Invalid function"
  262.    DOSERROFFSET+02,  "File not found"
  263.    DOSERROFFSET+03,  "Path not found"
  264.    DOSERROFFSET+04,  "Too many open files"
  265.    DOSERROFFSET+05,  "Access denied"
  266.    DOSERROFFSET+06,  "Invalid handle"
  267.    DOSERROFFSET+07,  "Arena Trashed"
  268.    DOSERROFFSET+08,  "Not enough memory"
  269.    DOSERROFFSET+09,  "Invalid Block"
  270.    DOSERROFFSET+10,  "Bad environment"
  271.    DOSERROFFSET+11,  "Bad format"
  272.    DOSERROFFSET+12,  "Invalid access"
  273.    DOSERROFFSET+13,  "Invalid data"
  274.    DOSERROFFSET+14,  "File open error 0E"
  275.    DOSERROFFSET+15,  "Invalid drive"
  276.    DOSERROFFSET+16,  "Current directory"
  277.    DOSERROFFSET+17,  "Not same device"
  278.    DOSERROFFSET+18,  "No more files"
  279.    DOSERROFFSET+19,  "Disk Write Protected"
  280.    DOSERROFFSET+20,  "Unknown unit"
  281.    DOSERROFFSET+21,  "Drive not ready"
  282.    DOSERROFFSET+22,  "Unknown command"
  283.    DOSERROFFSET+23,  "CRC Data Error"
  284.    DOSERROFFSET+24,  "Bad length"
  285.    DOSERROFFSET+25,  "Disk Seek error"
  286.    DOSERROFFSET+26,  "Not a DOS disk"
  287.    DOSERROFFSET+27,  "Sector not found"
  288.    DOSERROFFSET+28,  "Out of paper"
  289.    DOSERROFFSET+29,  "File Write fault"
  290.    DOSERROFFSET+30,  "File Read fault"
  291.    DOSERROFFSET+31,  "General failure"
  292.    DOSERROFFSET+32,  "File sharing violation"
  293.    DOSERROFFSET+33,  "File lock violation"
  294.    DOSERROFFSET+34,  "Illegal Disk change"
  295.    DOSERROFFSET+35,  "File control block unavailable"
  296.    DOSERROFFSET+36,  "Sharing buffer exceeded"
  297.    DOSERROFFSET+37,  "Not supported"
  298.    DOSERROFFSET+38,  "Remote not listed"
  299.    DOSERROFFSET+39,  "Duplicate name"
  300.    DOSERROFFSET+40,  "Bad netpath"
  301.    DOSERROFFSET+41,  "Network busy"
  302.    DOSERROFFSET+42,  "Device does not exist"
  303.    DOSERROFFSET+43,  "Too many commands"
  304.    DOSERROFFSET+44,  "Adaptor hardware error"
  305.    DOSERROFFSET+45,  "Bad network response"
  306.    DOSERROFFSET+46,  "Unexpected network error"
  307.    DOSERROFFSET+47,  "Bad remote adaptor"
  308.    DOSERROFFSET+48,  "Print queue full"
  309.    DOSERROFFSET+49,  "No spool space"
  310.    DOSERROFFSET+50,  "Print canceled"
  311.    DOSERROFFSET+51,  "Netname deleted"
  312.    DOSERROFFSET+52,  "Network access denied"
  313.    DOSERROFFSET+53,  "Bad device type"
  314.    DOSERROFFSET+54,  "Bad network name"
  315.    DOSERROFFSET+55,  "Too many names"
  316.    DOSERROFFSET+56,  "Too many sessions"
  317.    DOSERROFFSET+57,  "Sharing paused"
  318.    DOSERROFFSET+58,  "Request not accepted"
  319.    DOSERROFFSET+59,  "Redirection paused"
  320.    DOSERROFFSET+60,  "File exists"
  321.    DOSERROFFSET+61,  "Duplicate file control block"
  322.    DOSERROFFSET+62,  "Cannot make"
  323.    DOSERROFFSET+63,  "Interrupt 24 failure"
  324.    DOSERROFFSET+64,  "Out of structures"
  325.    DOSERROFFSET+65,  "Already assigned"
  326.    DOSERROFFSET+66,  "Invalid password"
  327.    DOSERROFFSET+67,  "Invalid parameter"
  328.    DOSERROFFSET+68,  "Net write fault"
  329.    //
  330.    // Strings for menu tags
  331.    //
  332.    MENUTEXT+IDM_REFRESH,      "Refresh file list"
  333.    MENUTEXT+IDM_COPY,         "Copy selected file(s)"
  334.    MENUTEXT+IDM_MOVE,         "Move selected file(s)"
  335.    MENUTEXT+IDM_DELETE,       "Delete selected file(s)"
  336.    MENUTEXT+IDM_EXIT,         "Exit ThinDisk"
  337.    MENUTEXT+IDM_FIND,         "Search for a file"
  338.    MENUTEXT+IDM_FINDNEXT,     "Find next file"
  339.    MENUTEXT+IDM_FINDPREV,     "Find previous file"
  340.    MENUTEXT+IDM_SORTUPDN,     "Invert sort order"
  341.    MENUTEXT+IDM_SORTNAME,     "Sort by file name"
  342.    MENUTEXT+IDM_SORTSIZE,     "Sort by file size"
  343.    MENUTEXT+IDM_SORTDATE,     "Sort by file date"
  344.    MENUTEXT+IDM_SHOWSIZE,     "Include file size in list"
  345.    MENUTEXT+IDM_SHOWDATE,     "Include file date in list"
  346.    MENUTEXT+IDM_SHOWATTRIB,   "Include file attributes in list"
  347.    MENUTEXT+IDM_SHOWPATH,     "Include file path in list"
  348.    MENUTEXT+IDM_INCLUDE,      "Define an include set"
  349.    MENUTEXT+IDM_INCLUDEDEL,   "Delete an include set"
  350.    MENUTEXT+IDM_INCLUDEALL,   "Include all files in list"
  351.    MENUTEXT+IDM_INCLUDEALL+1, "User defined include set 1"
  352.    MENUTEXT+IDM_INCLUDEALL+2, "User defined include set 2"
  353.    MENUTEXT+IDM_INCLUDEALL+3, "User defined include set 3"
  354.    MENUTEXT+IDM_INCLUDEALL+4, "User defined include set 4"
  355.    MENUTEXT+IDM_INCLUDEALL+5, "User defined include set 5"
  356.    MENUTEXT+IDM_INCLUDEALL+6, "User defined include set 6"
  357.    MENUTEXT+IDM_INCLUDEALL+7, "User defined include set 7"
  358.    MENUTEXT+IDM_ABOUT,        "Display the About dialog"
  359.    
  360.    MENUTEXT+SC_SIZE,        "Size the window with the keyboard"
  361.    MENUTEXT+SC_MOVE,        "Move the window with the keyboard"
  362.    MENUTEXT+SC_MINIMIZE,    "Minimize the window"
  363.    MENUTEXT+SC_MAXIMIZE,    "Maximize the window"
  364.    MENUTEXT+SC_CLOSE,       "Close the window"
  365.    MENUTEXT+SC_RESTORE,     "Restore the window"
  366.    MENUTEXT+SC_TASKLIST,    "Switch to another window"
  367.  
  368.    IDM_SYSMENUACTIVE,"Move, size, minimize, maximize or close window"
  369.  
  370. }
  371.