--- mstools/samples/filer/filer.rc 2018/08/09 18:22:15 1.1 +++ mstools/samples/filer/filer.rc 2018/08/09 18:24:29 1.1.1.2 @@ -1,25 +1,26 @@ -/******************************Module*Header*******************************\ -* Module Name: res.rc -* -* Resource file for filer -* -* Created: 5/05/92 -* Author: Colin Stuart [] -* -* Copyright (c) 1992 Microsoft Corporation -* -* Contains the Menu and the About dialog box resources -* -* Dependencies: -* -* windows.h -* filer.h -* -\**************************************************************************/ + +//----------------------------------------------------------------------------- +// This is a part of the Microsoft Source Code Samples. +// Copyright (C) 1993 Microsoft Corporation. +// All rights reserved. +// +// This source code is only intended as a supplement to +// Microsoft Development Tools and/or WinHelp documentation. +// See these sources for detailed information regarding the +// Microsoft samples programs. +//----------------------------------------------------------------------------- + #include #include "globals.h" +#include + +// +// Dialog Boxes and Windows +// +#include "filer.dlg" + // // Icons // @@ -44,26 +45,32 @@ FilerMenu MENU { POPUP "&File" { - MENUITEM "&Open\t Enter", MM_OPEN + MENUITEM "&Open\t Enter", MM_OPEN + MENUITEM SEPARATOR + MENUITEM "&Copy\t Ctrl-C", MM_COPY + MENUITEM "&Delete\t Ctrl-X", MM_DELETE + MENUITEM "&Move\t Ctrl-M", MM_MOVE + MENUITEM "&Rename\t Ctrl-R", MM_RENAME + MENUITEM "File &Version Info\t Alt-Enter", MM_VERSION MENUITEM SEPARATOR - MENUITEM "&Copy\t Ctrl-C", MM_COPY - MENUITEM "&Delete\t Ctrl-X", MM_DELETE - MENUITEM "&Move\t Ctrl-M", MM_MOVE - MENUITEM "&Rename\t Ctrl-R", MM_RENAME + MENUITEM "Ma&ke Dir\t Ctrl-K", MM_MKDIR + MENUITEM "De&lete Dir\t Ctrl-L", MM_DELDIR, GRAYED MENUITEM SEPARATOR - MENUITEM "Ma&ke Dir\t Ctrl-K", MM_MKDIR - MENUITEM "De&lete Dir\t Ctrl-L",MM_DELDIR, GRAYED + MENUITEM "E&xit\t Alt-F4", MM_EXIT } POPUP "&View" { - MENUITEM "&Refresh\t F5", MM_REFRESH + MENUITEM "Toggle &Active Drive\t F2", MM_ACTIVEDRV + MENUITEM "&Refresh\t F3", MM_REFRESH MENUITEM SEPARATOR - MENUITEM "&Focus Tree/File/Command\t Tab", MM_TAB - MENUITEM "&Toggle Active &Drive\t F6", MM_ACTIVEDRV - MENUITEM "&Clear Selection\t Esc" MM_ESCAPE + MENUITEM "&Expand Tree\t F5", MM_EXPAND + MENUITEM "&Keep Command Windows\t F6", MM_KEEPCMD MENUITEM SEPARATOR MENUITEM "&Swap Sides\t F7", MM_SWAP MENUITEM "Window &Orientation\t F8", MM_ORIENT + MENUITEM SEPARATOR + MENUITEM "&Focus Tree/File/Command\t Tab", MM_TAB + MENUITEM "&Clear Selection/Abort\t Esc" MM_ESCAPE } POPUP "&Drives" // see DRIVE_MENU_NUM in filer.h { @@ -71,78 +78,11 @@ FilerMenu MENU } POPUP "&Help" { - MENUITEM "&About Filer...", MM_ABOUT + MENUITEM "&About Filer...", MM_ABOUT } } // -// Dialogs & Windows -// -FunctionBar DIALOG 0,0, 210, 10 -STYLE WS_CHILD | WS_VISIBLE -FONT 8, "MS Sans Serif" -BEGIN - PUSHBUTTON "Copy", MM_COPY, 0, 0, 35, 10, NOT WS_TABSTOP - PUSHBUTTON "Move", MM_MOVE, 35, 0, 35, 10, NOT WS_TABSTOP - PUSHBUTTON "Delete", MM_DELETE, 70, 0, 35, 10, NOT WS_TABSTOP - PUSHBUTTON "Rename", MM_RENAME, 105, 0, 35, 10, NOT WS_TABSTOP - PUSHBUTTON "Make Dir", MM_MKDIR, 140, 0, 35, 10, NOT WS_TABSTOP - PUSHBUTTON "Del Dir", MM_DELDIR, 175, 0, 35, 10, NOT WS_TABSTOP | WS_DISABLED -END - -SelectDlg DIALOG 8, 28, 210, 96 -STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU -CAPTION "Selected Files" -{ - EDITTEXT SB_DEST, 4, 83, 203, 12, ES_AUTOHSCROLL - LISTBOX SB_SOURCE, 3, 26, 204, 50, LBS_SORT | LBS_MULTICOLUMN | - WS_VSCROLL | WS_HSCROLL | WS_TABSTOP - DEFPUSHBUTTON "OK", SB_OK, 115, 5, 40, 14 - PUSHBUTTON "Cancel", SB_CANCEL, 164, 5, 40, 14 - LTEXT "Verify the following selection(s): ", SB_STATIC, 4, 6, - 104, 9 - LTEXT " ", SB_ACTION, 3, 18, 50, 7 - LTEXT " ", SB_TOFROM, 3, 75, 50, 7 -} - -RenameDlg DIALOG 25, 28, 205, 51 -STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU -CAPTION "Rename File" -FONT 8, "MS Sans Serif" -BEGIN - EDITTEXT SB_DEST, 5, 30, 150, 12, ES_AUTOHSCROLL - EDITTEXT SB_SOURCE, 5, 9, 150, 12, ES_AUTOHSCROLL - DEFPUSHBUTTON "OK", SB_OK, 160, 8, 40, 14 - PUSHBUTTON "Cancel", SB_CANCEL, 160, 29, 40, 14 - LTEXT "Rename:", SB_ACTION, 5, 1, 35, 8 - LTEXT "To:", SB_TOFROM, 5, 22, 12, 8 -END - -MkDirDlg DIALOG 14, 29, 230, 41 -STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU -CAPTION "Make Directory" -FONT 8, "MS Sans Serif" -BEGIN - EDITTEXT SB_DEST, 5, 24, 220, 12, ES_AUTOHSCROLL - LTEXT "Directory Name:", SB_ACTION, 5, 16, 54, 8 - DEFPUSHBUTTON "OK", SB_OK, 135, 5, 40, 14 - PUSHBUTTON "Cancel", SB_CANCEL, 185, 5, 40, 14 -END - -AboutBox DIALOG 16, 16, 136, 49 -STYLE DS_MODALFRAME | WS_CAPTION | WS_VISIBLE -CAPTION "About Filer" -{ - CTEXT "Microsoft Developer Support", 65535, 28, 6, 108, 8 - CTEXT "Copyright (c) 1992 Microsoft Corporation", 65535, 28, 16, 108, 8 - ICON UI_FILERICON, 65535, 7, 4, 16, 16 - LTEXT "Version 0.6", 65535, 5, 31, 108, 8 - LTEXT "Filer Sample Application", 65535, 5, 39, 95, 8 - DEFPUSHBUTTON "&OK", IDOK, 100, 31, 32, 14, WS_GROUP - CONTROL "", 201, "Static", SS_BLACKFRAME, 6, 26, 125, 1 -} - -// // Accelerators // ACCEL_ID ACCELERATORS @@ -150,8 +90,12 @@ ACCEL_ID ACCELERATORS VK_TAB, MM_TAB, VIRTKEY VK_ESCAPE, MM_ESCAPE, VIRTKEY VK_RETURN, MM_OPEN, VIRTKEY - VK_F5, MM_REFRESH, VIRTKEY - VK_F6, MM_ACTIVEDRV, VIRTKEY + VK_RETURN, MM_VERSION, VIRTKEY, ALT + VK_F4, MM_EXIT, VIRTKEY, ALT + VK_F2, MM_ACTIVEDRV, VIRTKEY + VK_F3, MM_REFRESH, VIRTKEY + VK_F5, MM_EXPAND, VIRTKEY + VK_F6, MM_KEEPCMD, VIRTKEY VK_F7, MM_SWAP, VIRTKEY VK_F8, MM_ORIENT, VIRTKEY @@ -179,3 +123,37 @@ STR_BAT ".BAT" STR_DEF_EDITOR "notepad.exe" } + + +// +// Version Information +// +VS_VERSION_INFO VERSIONINFO +FILEVERSION 0,9,0,0 +PRODUCTVERSION 3,1,0,0 +FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +FILEFLAGS (VS_FF_PRERELEASE|VS_FF_DEBUG) +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_APP +FILESUBTYPE VFT2_UNKNOWN +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK VERSION_INFO_LANG_ID + BEGIN + VALUE "CompanyName", "Microsoft Corporation\0" + VALUE "FileDescription", "File Management Sample Application\0" + VALUE "FileVersion", "1.0\0" + VALUE "InternalName", "Filer\0" + VALUE "LegalCopyright", "Copyright \251 Microsoft Corp. 1992 - 1993\0" + VALUE "LegalTrademarks", "Microsoft\256 is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0" + VALUE "ProductName", "Filer\0" + VALUE "ProductVersion", "1.0\0" + END + END + + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 // English, Unicode + END +END