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 >
Wrap
Text File
|
1994-01-27
|
16KB
|
371 lines
//===========================================================
// THINDISK.RC - Resource script
// Copyright (C) 1994 Douglas Boling
//===========================================================
#include "windows.h"
#include "thindisk.h"
#include "statbar.h"
WinThinDiskIcon ICON thindisk.ico
//------------------------------------------------------------------------
// Menu Definition. There are code dependancies on the positions
// of the menus.
//------------------------------------------------------------------------
WinThinDiskMenu MENU {
POPUP "&File" {
MENUITEM "&Refresh", IDM_REFRESH
MENUITEM SEPARATOR
MENUITEM "&Copy...\tF8", IDM_COPY
MENUITEM "&Move...\tF7", IDM_MOVE
MENUITEM SEPARATOR
MENUITEM "&Delete\tDEL", IDM_DELETE
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
}
POPUP "&Search" {
MENUITEM "&Find Entry", IDM_FIND
MENUITEM "Find &Next\tF3", IDM_FINDNEXT
MENUITEM "Find &Previous", IDM_FINDPREV
}
POPUP "&View" {
MENUITEM "&Invert Sort", IDM_SORTUPDN
MENUITEM SEPARATOR
MENUITEM "Sort by &Name", IDM_SORTNAME
MENUITEM "Sort by &Extension",IDM_SORTEXT
MENUITEM "Sort by &Size", IDM_SORTSIZE
MENUITEM "Sort by &Date", IDM_SORTDATE
MENUITEM SEPARATOR
MENUITEM "Show Si&ze", IDM_SHOWSIZE
MENUITEM "Show Da&te", IDM_SHOWDATE
MENUITEM "Show &Attributes", IDM_SHOWATTRIB
MENUITEM "Show &Path", IDM_SHOWPATH
}
POPUP "&Include" {
MENUITEM "Define &Include Set",IDM_INCLUDE
MENUITEM "&Edit Include Set", IDM_INCLUDEEDIT
MENUITEM "&Delete Include Set",IDM_INCLUDEDEL
MENUITEM SEPARATOR
MENUITEM "&All Files", IDM_INCLUDEALL
}
POPUP "&Help" {
MENUITEM "&About", IDM_ABOUT
}
}
//------------------------------------------------------------------------
// Accelerator Definitions
//------------------------------------------------------------------------
WinThinDisk ACCELERATORS {
VK_F3, IDM_FINDNEXT, VIRTKEY
VK_F7, IDM_MOVE, VIRTKEY
VK_F8, IDM_COPY, VIRTKEY
VK_DELETE, IDM_DELETE, VIRTKEY
}
//---------------------------------------------------------
// Refresh Dialog template
//---------------------------------------------------------
Refresh DIALOG 50, 20, 85, 105
CAPTION "Refresh File List"
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
BEGIN
LTEXT "Select Drives then press Refresh",
IDD_REFRESHTEXT, 5, 5, 70, 20
LISTBOX IDD_DRVLIST, 5, 30, 30, 70, LBS_MULTIPLESEL | WS_TABSTOP
DEFPUSHBUTTON "&Refresh", IDD_REFRESH, 40, 30, 40, 15
PUSHBUTTON "&Close", IDOK, 40, 52, 40, 15
END
//---------------------------------------------------------
// Copy Move files Dialog template
//---------------------------------------------------------
MoveCopyFiles DIALOG 50, 20, 220, 123
CAPTION "Copy files"
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
BEGIN
LTEXT "The following files/directories are to be copied:",
IDD_COPYTEXT, 5, 5, 205, 20
LISTBOX IDD_FILELIST, 5, 20, 165, 69, WS_VSCROLL | WS_HSCROLL
LTEXT "Destination directory:",
-1, 5, 90, 165, 12
EDITTEXT IDD_DESTPATH, 5, 105, 165, 12
DEFPUSHBUTTON "Copy", IDOK, 175, 20, 40, 15
PUSHBUTTON "Cancel", IDCANCEL, 175, 42, 40, 15
END
//---------------------------------------------------------
// Delete files Dialog template
//---------------------------------------------------------
DelFiles DIALOG 50, 20, 215, 80
CAPTION "Delete files"
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
BEGIN
LTEXT "The following files/directories are to be deleted",
-1, 5, 5, 200, 20
LISTBOX IDD_FILELIST, 5, 20, 160, 55, WS_HSCROLL | WS_VSCROLL
DEFPUSHBUTTON "OK", IDOK, 170, 20, 40, 15
PUSHBUTTON "Cancel", IDCANCEL, 170, 42, 40, 15
END
//---------------------------------------------------------
// Include files Dialog template
//---------------------------------------------------------
IncFiles DIALOG 50, 20, 270, 135
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Screen Files By"
FONT 8, "Helv"
BEGIN
LTEXT "Include set name", -1, 5, 10, 75, 10
EDITTEXT IDD_SPECNAME, 85, 10, 125, 12, ES_AUTOHSCROLL
CONTROL "File Specification", IDD_CHKFSPEC, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 30, 75, 10
EDITTEXT IDD_FSPEC, 85, 30, 125, 12, ES_AUTOHSCROLL
CONTROL "Size", IDD_CHKFSIZE, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 50, 75, 10
EDITTEXT IDD_FSIZE, 85, 50, 45, 12, ES_AUTOHSCROLL
CONTROL "Above", IDD_FSIZEUP, "Button",
WS_GROUP | BS_AUTORADIOBUTTON, 135, 50, 40, 10
CONTROL "Below", IDD_FSIZEDN, "Button",
BS_AUTORADIOBUTTON, 175, 50, 40, 10
CONTROL "Date", IDD_CHKFDATE, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 70, 75, 10
EDITTEXT IDD_FDATE, 85, 70, 45, 12, ES_AUTOHSCROLL
CONTROL "Before", IDD_FDATEB, "Button",
WS_GROUP | BS_AUTORADIOBUTTON, 135, 70, 40, 10
CONTROL "After", IDD_FDATEA, "Button",
BS_AUTORADIOBUTTON, 175, 70, 40, 10
CONTROL "Exact", IDD_FDATEO, "Button",
BS_AUTORADIOBUTTON, 215, 70, 40, 10
CONTROL "File Attributes", IDD_CHKFATTRS, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 90, 75, 10
CONTROL "Read Only", IDD_CHKFARDONLY, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 85, 90, 50, 10
CONTROL "Archive", IDD_CHKFAARCH, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 140, 90, 50, 10
CONTROL "Hidden", IDD_CHKFAHIDDEN, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 85, 105, 50, 10
CONTROL "System", IDD_CHKFASYSTEM, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 140, 105, 50, 10
CONTROL "Include Directories", IDD_INCDIRS, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 120, 100, 10
CONTROL "Include empty Directories", IDD_INCEMPTYDIRS, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 135, 120, 120, 10
DEFPUSHBUTTON "OK", IDOK, 215, 10, 50, 15
PUSHBUTTON "Cancel", IDCANCEL, 215, 30, 50, 15
PUSHBUTTON "Save as New", IDD_SAVEAS, 215, 50, 50, 15
END
//---------------------------------------------------------
// Include Delete Dialog template
//---------------------------------------------------------
IncludeDel DIALOG 50, 20, 155, 80
CAPTION "Delete Include Set"
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
BEGIN
LTEXT "Select include set to delete",
-1, 5, 5, 140, 20
LISTBOX IDD_INCLIST, 5, 20, 100, 55, WS_VSCROLL | WS_TABSTOP
DEFPUSHBUTTON "Delete", IDOK, 110, 20, 40, 15
PUSHBUTTON "Cancel", IDCANCEL, 110, 42, 40, 15
END
//---------------------------------------------------------
// Search Dialog template
//---------------------------------------------------------
FindFile DIALOG 50, 20, 265, 100
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Find File"
FONT 8, "Helv"
BEGIN
CONTROL "File Specification", IDD_CHKFSPEC, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 11, 75, 10
EDITTEXT IDD_FSPEC, 85, 10, 125, 12, ES_AUTOHSCROLL
CONTROL "Size", IDD_CHKFSIZE, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 31, 75, 10
EDITTEXT IDD_FSIZE, 85, 30, 45, 12, ES_AUTOHSCROLL
CONTROL "Above", IDD_FSIZEUP, "Button",
WS_GROUP | BS_AUTORADIOBUTTON, 135, 31, 40, 10
CONTROL "Below", IDD_FSIZEDN, "Button",
BS_AUTORADIOBUTTON, 175, 31, 40, 10
CONTROL "Date", IDD_CHKFDATE, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 51, 75, 10
EDITTEXT IDD_FDATE, 85, 50, 45, 12, ES_AUTOHSCROLL
CONTROL "Before", IDD_FDATEB, "Button",
WS_GROUP | BS_AUTORADIOBUTTON, 135, 51, 40, 10
CONTROL "After", IDD_FDATEA, "Button",
BS_AUTORADIOBUTTON, 175, 51, 40, 10
CONTROL "Exact", IDD_FDATEO, "Button",
BS_AUTORADIOBUTTON, 215, 51, 40, 10
CONTROL "File Attributes", IDD_CHKFATTRS, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 5, 71, 75, 10
CONTROL "Read Only", IDD_CHKFARDONLY, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 85, 71, 50, 10
CONTROL "Archive", IDD_CHKFAARCH, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 140, 71, 50, 10
CONTROL "Hidden", IDD_CHKFAHIDDEN, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 85, 86, 50, 10
CONTROL "System", IDD_CHKFASYSTEM, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 140, 86, 50, 10
DEFPUSHBUTTON "Find", IDOK, 220, 10, 40, 15
PUSHBUTTON "Cancel", IDCANCEL, 220, 30, 40, 15
END
//---------------------------------------------------------
// About Box Dialog template
//---------------------------------------------------------
AboutBox DIALOG 23, 20, 140, 95
CAPTION "About ThinDisk"
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
BEGIN
ICON "WinThinDiskIcon", -1, 5, 5, 16, 16
CTEXT "ThinDisk ", IDD_PROGSTR, 40, 12, 60, 10
CTEXT "Copyright \251 1994 Douglas Boling",
-1, 10, 27, 120, 10
CTEXT "First published in PC Magazine March 15, 1994 (US Edition).\nFor private, non-commercial use only. All rights reserved."
-1, 10, 40, 120, 38
DEFPUSHBUTTON "OK", IDOK, 50, 80, 40, 12
END
//---------------------------------------------------------
// Stringtable for status bar
//---------------------------------------------------------
STRINGTABLE {
//
//Error message strings
//
1, "Command Canceled"
2, "Not enough memory"
3, "More than 32767 files"
4, "Recursion limit reached on sort, list not completely sorted"
5, "Disk Full"
6, "Name too long"
7, "Path information not allowed in file specification"
8, "Illegal file size"
9, "Date must be in MM-DD-YYYY format"
DOSERROFFSET+01, "Invalid function"
DOSERROFFSET+02, "File not found"
DOSERROFFSET+03, "Path not found"
DOSERROFFSET+04, "Too many open files"
DOSERROFFSET+05, "Access denied"
DOSERROFFSET+06, "Invalid handle"
DOSERROFFSET+07, "Arena Trashed"
DOSERROFFSET+08, "Not enough memory"
DOSERROFFSET+09, "Invalid Block"
DOSERROFFSET+10, "Bad environment"
DOSERROFFSET+11, "Bad format"
DOSERROFFSET+12, "Invalid access"
DOSERROFFSET+13, "Invalid data"
DOSERROFFSET+14, "File open error 0E"
DOSERROFFSET+15, "Invalid drive"
DOSERROFFSET+16, "Current directory"
DOSERROFFSET+17, "Not same device"
DOSERROFFSET+18, "No more files"
DOSERROFFSET+19, "Disk Write Protected"
DOSERROFFSET+20, "Unknown unit"
DOSERROFFSET+21, "Drive not ready"
DOSERROFFSET+22, "Unknown command"
DOSERROFFSET+23, "CRC Data Error"
DOSERROFFSET+24, "Bad length"
DOSERROFFSET+25, "Disk Seek error"
DOSERROFFSET+26, "Not a DOS disk"
DOSERROFFSET+27, "Sector not found"
DOSERROFFSET+28, "Out of paper"
DOSERROFFSET+29, "File Write fault"
DOSERROFFSET+30, "File Read fault"
DOSERROFFSET+31, "General failure"
DOSERROFFSET+32, "File sharing violation"
DOSERROFFSET+33, "File lock violation"
DOSERROFFSET+34, "Illegal Disk change"
DOSERROFFSET+35, "File control block unavailable"
DOSERROFFSET+36, "Sharing buffer exceeded"
DOSERROFFSET+37, "Not supported"
DOSERROFFSET+38, "Remote not listed"
DOSERROFFSET+39, "Duplicate name"
DOSERROFFSET+40, "Bad netpath"
DOSERROFFSET+41, "Network busy"
DOSERROFFSET+42, "Device does not exist"
DOSERROFFSET+43, "Too many commands"
DOSERROFFSET+44, "Adaptor hardware error"
DOSERROFFSET+45, "Bad network response"
DOSERROFFSET+46, "Unexpected network error"
DOSERROFFSET+47, "Bad remote adaptor"
DOSERROFFSET+48, "Print queue full"
DOSERROFFSET+49, "No spool space"
DOSERROFFSET+50, "Print canceled"
DOSERROFFSET+51, "Netname deleted"
DOSERROFFSET+52, "Network access denied"
DOSERROFFSET+53, "Bad device type"
DOSERROFFSET+54, "Bad network name"
DOSERROFFSET+55, "Too many names"
DOSERROFFSET+56, "Too many sessions"
DOSERROFFSET+57, "Sharing paused"
DOSERROFFSET+58, "Request not accepted"
DOSERROFFSET+59, "Redirection paused"
DOSERROFFSET+60, "File exists"
DOSERROFFSET+61, "Duplicate file control block"
DOSERROFFSET+62, "Cannot make"
DOSERROFFSET+63, "Interrupt 24 failure"
DOSERROFFSET+64, "Out of structures"
DOSERROFFSET+65, "Already assigned"
DOSERROFFSET+66, "Invalid password"
DOSERROFFSET+67, "Invalid parameter"
DOSERROFFSET+68, "Net write fault"
//
// Strings for menu tags
//
MENUTEXT+IDM_REFRESH, "Refresh file list"
MENUTEXT+IDM_COPY, "Copy selected file(s)"
MENUTEXT+IDM_MOVE, "Move selected file(s)"
MENUTEXT+IDM_DELETE, "Delete selected file(s)"
MENUTEXT+IDM_EXIT, "Exit ThinDisk"
MENUTEXT+IDM_FIND, "Search for a file"
MENUTEXT+IDM_FINDNEXT, "Find next file"
MENUTEXT+IDM_FINDPREV, "Find previous file"
MENUTEXT+IDM_SORTUPDN, "Invert sort order"
MENUTEXT+IDM_SORTNAME, "Sort by file name"
MENUTEXT+IDM_SORTSIZE, "Sort by file size"
MENUTEXT+IDM_SORTDATE, "Sort by file date"
MENUTEXT+IDM_SHOWSIZE, "Include file size in list"
MENUTEXT+IDM_SHOWDATE, "Include file date in list"
MENUTEXT+IDM_SHOWATTRIB, "Include file attributes in list"
MENUTEXT+IDM_SHOWPATH, "Include file path in list"
MENUTEXT+IDM_INCLUDE, "Define an include set"
MENUTEXT+IDM_INCLUDEDEL, "Delete an include set"
MENUTEXT+IDM_INCLUDEALL, "Include all files in list"
MENUTEXT+IDM_INCLUDEALL+1, "User defined include set 1"
MENUTEXT+IDM_INCLUDEALL+2, "User defined include set 2"
MENUTEXT+IDM_INCLUDEALL+3, "User defined include set 3"
MENUTEXT+IDM_INCLUDEALL+4, "User defined include set 4"
MENUTEXT+IDM_INCLUDEALL+5, "User defined include set 5"
MENUTEXT+IDM_INCLUDEALL+6, "User defined include set 6"
MENUTEXT+IDM_INCLUDEALL+7, "User defined include set 7"
MENUTEXT+IDM_ABOUT, "Display the About dialog"
MENUTEXT+SC_SIZE, "Size the window with the keyboard"
MENUTEXT+SC_MOVE, "Move the window with the keyboard"
MENUTEXT+SC_MINIMIZE, "Minimize the window"
MENUTEXT+SC_MAXIMIZE, "Maximize the window"
MENUTEXT+SC_CLOSE, "Close the window"
MENUTEXT+SC_RESTORE, "Restore the window"
MENUTEXT+SC_TASKLIST, "Switch to another window"
IDM_SYSMENUACTIVE,"Move, size, minimize, maximize or close window"
}