//------------------------------------------------------------------------------
// Файл ресурсов приложения firstapp.exe
// Project FirstApp
// Copyright © 2003. All Rights Reserved.
// SUBSYSTEM: FirstApp Application
// FILE: firstappapp.rc
// AUTHOR:
// OVERVIEW
// ~~~~~~~~
// All resources defined here. Все ресурсы, определенны здесь.
//------------------------------------------------------------------------------
// См. ниже следующую таблицу
// Table of help hints displayed in the status bar.
// Таблица подсказок справки, отображаемых в строке состояния.
/* Это тоже комментарий
STRINGTABLE
{
-1, "File/document operations"
CM_MDIFILENEW, "Создание нового документа"
*/
// См. ниже
// About box.
// Диалог "О программе"
//----------------------------------------------------------------------------
#if !defined(WORKSHOP_INVOKED)
#include <windows.h>
#endif
#include "firstappapp.rh"
IDM_MDI MENU
{
POPUP "&Файлы"
{
MENUITEM "&Создать", CM_MDIFILENEW
// Редактировать пункты меню можно непосредственно в файле ресурсов, напрмер:
/* это тоже комментарий. Заменим MENUITEM "&Open...", CM_MDIFILEOPEN на */
MENUITEM "&Открыть...", CM_MDIFILEOPEN
MENUITEM "&Close", CM_FILECLOSE
MENUITEM SEPARATOR
MENUITEM "&Save", CM_FILESAVE, GRAYED
MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "Print Pre&view...", CM_FILEPRINTPREVIEW, GRAYED
MENUITEM "&Print...", CM_FILEPRINT, GRAYED
MENUITEM "P&rint Setup...", CM_FILEPRINTERSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "Sen&d...", CM_FILESEND, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+F4", CM_EXIT
}
MENUITEM SEPARATOR
POPUP "&Edit"
{
MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED
MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED
MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED
MENUITEM SEPARATOR
MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED
MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED
}
POPUP "&Search"
{
MENUITEM "&Find...", CM_EDITFIND, GRAYED
MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED
MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED
}
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
POPUP "&Window"
{
MENUITEM "&Cascade", CM_CASCADECHILDREN
MENUITEM "&Tile", CM_TILECHILDREN
MENUITEM "Arrange &Icons", CM_ARRANGEICONS
MENUITEM "C&lose All", CM_CLOSECHILDREN
}
MENUITEM SEPARATOR
POPUP "&Help"
{
MENUITEM "&Contents", CM_HELPCONTENTS
MENUITEM "&Using help", CM_HELPUSING
MENUITEM SEPARATOR
MENUITEM "&About...", CM_HELPABOUT
}
}
// Accelerator table for short-cut to menu commands. (include/owl/editfile.rc)
// Таблица Акселератора для быстрого вызова команд меню.
// Из (Include/owl/editfile.rc)
IDM_MDI ACCELERATORS
BEGIN
VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
VK_BACK, CM_EDITUNDO, VIRTKEY, ALT
VK_F3, CM_EDITFINDNEXT, VIRTKEY
END
// Accelerator table for Print Preview window.
//
IDM_PRINTPREVIEW ACCELERATORS
BEGIN
VK_ESCAPE, APX_PPR_DONE, VIRTKEY
"c", APX_PPR_DONE, ALT
END
// Context sensitive help cursor.
//
IDC_HELPCURSOR CURSOR "help.cur"
// Menu merged in when TEditView is active, notice the extra
// MENUITEM SEPARATORs which are for menu negotation.
// These separators are used as group markers by OWL.
//
IDM_EDITVIEW MENU LOADONCALL MOVEABLE PURE DISCARDABLE
BEGIN
MENUITEM SEPARATOR
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\aCtrl+Z", CM_EDITUNDO
MENUITEM SEPARATOR
MENUITEM "&Cut\aCtrl+X", CM_EDITCUT
MENUITEM "C&opy\aCtrl+C", CM_EDITCOPY
MENUITEM "&Paste\aCtrl+V", CM_EDITPASTE
MENUITEM "&Delete\aDel", CM_EDITDELETE
MENUITEM "C&lear All\aCtrl+Del", CM_EDITCLEAR
END
POPUP "&Search"
BEGIN
MENUITEM "&Find...", CM_EDITFIND
MENUITEM "&Replace...", CM_EDITREPLACE
MENUITEM "&Next\aF3", CM_EDITFINDNEXT
END
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
END
// Menu merged in when TListView is active, notice the extra MENUITEM SEPARATORs which are
// for menu negotation. These separators are used as group markers by OWL.
//
IDM_LISTVIEW MENU LOADONCALL MOVEABLE PURE DISCARDABLE
BEGIN
MENUITEM SEPARATOR
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\aCtrl+Z", CM_EDITUNDO
MENUITEM SEPARATOR
MENUITEM "&Cut\aCtrl+X", CM_EDITCUT
MENUITEM "C&opy\aCtrl+C", CM_EDITCOPY
MENUITEM "&Paste\aCtrl+V", CM_EDITPASTE
MENUITEM "&Delete\aDel", CM_EDITDELETE
MENUITEM "&Add Item\aIns", CM_EDITADD
MENUITEM "&Edit Item\aEnter", CM_EDITEDIT
MENUITEM "C&lear All\aCtrl+Del", CM_EDITCLEAR
END
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
END
IDM_DOCMANAGERFILE MENU LOADONCALL MOVEABLE PURE DISCARDABLE
BEGIN
MENUITEM "&New", CM_MDIFILENEW
MENUITEM "&Open...", CM_MDIFILEOPEN
MENUITEM "&Close", CM_FILECLOSE
MENUITEM SEPARATOR
MENUITEM "&Save", CM_FILESAVE, GRAYED
MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "Print Pre&view...", CM_FILEPRINTPREVIEW, GRAYED
MENUITEM "&Print...", CM_FILEPRINT, GRAYED
MENUITEM "P&rint Setup...", CM_FILEPRINTERSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+F4", CM_EXIT
END
// Table of help hints displayed in the status bar.
// Таблица подсказок справки, отображаемых в строке состояния.
STRINGTABLE
{
- 1, "File/document operations"
CM_MDIFILENEW, "Создание нового документа"
CM_MDIFILEOPEN, "Opens an existing document"
CM_VIEWCREATE, "Creates a new view for this document"
CM_FILEREVERT, "Reverts changes to last document save"
CM_FILECLOSE, "Closes the active document"
CM_FILESAVE, "Saves the active document"
CM_FILESAVEAS, "Saves the active document with a new name"
CM_FILEPRINT, "Prints the active document"
CM_FILEPRINTERSETUP, "Sets print characteristics for the active document"
CM_FILEPRINTPREVIEW, "Displays full pages as read-only"
CM_FILESEND, "Sends the active document using electronic mail"
CM_EXIT, "Quits FirstApp and prompts to save the documents"
CM_EDITUNDO - 1, "Edit operations"
CM_EDITUNDO, "Reverses the last operation"
CM_EDITCUT, "Cuts the selection and puts it on the Clipboard"
CM_EDITCOPY, "Copies the selection and puts it on the Clipboard"
CM_EDITPASTE, "Inserts the Clipboard contents at the insertion point"
CM_EDITDELETE, "Deletes the selection"
CM_EDITCLEAR, "Clears the active document"
CM_EDITADD, "Inserts a new line"
CM_EDITEDIT, "Edits the current line"
CM_EDITFIND - 1, "Search/replace operations"
CM_EDITFIND, "Finds the specified text"
CM_EDITREPLACE, "Finds the specified text and changes it"
CM_EDITFINDNEXT, "Finds the next match"
CM_CASCADECHILDREN - 1, "Window arrangement and selection"
CM_CASCADECHILDREN, "Cascades open windows"
CM_TILECHILDREN, "Tiles open windows"
CM_ARRANGEICONS, "Arranges iconic windows along bottom"
CM_CLOSECHILDREN, "Closes all open windows"
CM_HELPCONTENTS - 1, "Access online help"
CM_HELPCONTENTS, "Help table of contents"
CM_HELPUSING, "Help on using online Help"
CM_HELPABOUT, "About the FirstApp application"
}
//
// OWL string table
//
// EditFile (include/owl/editfile.rc and include/owl/editsear.rc)
//
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_CANNOTFIND, "Cannot find ""%s""."
IDS_UNABLEREAD, "Unable to read file %s from disk."
IDS_UNABLEWRITE, "Unable to write file %s to disk."
IDS_FILECHANGED, "The text in the %s file has changed.\n\nDo you want to save the changes?"
IDS_FILEFILTER, "Text files|*.txt|AllFiles|*.*|"
END
// ListView (include/owl/listview.rc)
//
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_LISTNUM, "Line number %d"
END
// Doc/View (include/owl/docview.rc)
//
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_DOCMANAGERFILE, "&File"
IDS_DOCLIST, "--Document Type--"
IDS_VIEWLIST, "--View Type--"
IDS_UNTITLED, "Document"
IDS_UNABLEOPEN, "Unable to open document."
IDS_UNABLECLOSE, "Unable to close document."
IDS_READERROR, "Document read error."
IDS_WRITEERROR, "Document write error."
IDS_DOCCHANGED, "The document has been changed.\n\nDo you want to save the changes?"
IDS_NOTCHANGED, "The document has not been changed."
IDS_NODOCMANAGER, "Document Manager not present."
IDS_NOMEMORYFORVIEW, "Insufficient memory for view."
IDS_DUPLICATEDOC, "Document already loaded."
END
// Printer (include/owl/printer.rc)
//
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_PRNON, " on "
IDS_PRNERRORTEMPLATE, "'%s' not printed. %s."
IDS_PRNOUTOFMEMORY, "Out of memory"
IDS_PRNOUTOFDISK, "Out of disk space"
IDS_PRNCANCEL, "Printing canceled"
IDS_PRNMGRABORT, "Printing aborted in Print Manager"
IDS_PRNGENERROR, "Error encountered during print"
IDS_PRNERRORCAPTION, "Print Error"
END
// Exception string resources (include/owl/except.rc)
//
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_OWLEXCEPTION, "ObjectWindows Exception"
IDS_UNHANDLEDXMSG, "Unhandled Exception"
IDS_OKTORESUME, "OK to resume?"
IDS_UNKNOWNEXCEPTION, "Unknown exception"
IDS_UNKNOWNERROR, "Unknown error"
IDS_NOAPP, "No application object"
IDS_OUTOFMEMORY, "Out of memory"
IDS_INVALIDMODULE, "Invalid module specified for window"
IDS_INVALIDMAINWINDOW,"Invalid MainWindow"
IDS_VBXLIBRARYFAIL, "VBX Library init failure"
IDS_INVALIDWINDOW, "Invalid window %s"
IDS_INVALIDCHILDWINDOW,"Invalid child window %s"
IDS_INVALIDCLIENTWINDOW,"Invalid client window %s"
IDS_CLASSREGISTERFAIL,"Class registration fail for window %s"
IDS_CHILDREGISTERFAIL,"Child class registration fail for window %s"
IDS_WINDOWCREATEFAIL, "Create fail for window %s"
IDS_WINDOWEXECUTEFAIL,"Execute fail for window %s"
IDS_CHILDCREATEFAIL, "Child create fail for window %s"
IDS_MENUFAILURE, "Menu creation failure"
IDS_VALIDATORSYNTAX, "Validator syntax error"
IDS_PRINTERERROR, "Printer error"
IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s"
IDS_LAYOUTBADRELWIN, "Invalid relative window specified in layout constraint in window %s"
IDS_GDIFAILURE, "GDI failure"
IDS_GDIALLOCFAIL, "GDI allocate failure"
IDS_GDICREATEFAIL, "GDI creation failure"
IDS_GDIRESLOADFAIL, "GDI resource load failure"
IDS_GDIFILEREADFAIL, "GDI file read failure"
IDS_GDIDELETEFAIL, "GDI object %X delete failure"
IDS_GDIDESTROYFAIL, "GDI object %X destroy failure"
IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X"
END
// General Window's status bar messages. (include/owl/statusba.rc)
//
STRINGTABLE
BEGIN
IDS_MODES "EXT|CAPS|NUM|SCRL|OVR|REC"
IDS_MODESOFF " | | | | | "
SC_SIZE, "Changes the size of the window"
SC_MOVE, "Moves the window to another position"
SC_MINIMIZE, "Reduces the window to an icon"
SC_MAXIMIZE, "Enlarges the window to it maximum size"
SC_RESTORE, "Restores the window to its previous size"
SC_CLOSE, "Closes the window"
SC_TASKLIST, "Opens task list"
SC_NEXTWINDOW, "Switches to next window"
END
// Validator messages (include/owl/validate.rc)
//
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_VALPXPCONFORM "Input does not conform to picture:\n""%s"""
IDS_VALINVALIDCHAR "Invalid character in input"
IDS_VALNOTINRANGE "Value is not in the range %ld to %ld."
IDS_VALNOTINLIST "Input is not in valid-list"
END
//
// Bitmaps used by the speedbar.
// Each bitmap is associated with a particular menu command.
// Значки, используемые панелью управления.
// Каждый значок связан со специфической командой меню.
CM_MDIFILENEW BITMAP "new.bmp"
CM_MDIFILEOPEN BITMAP "open.bmp"
CM_FILESAVE BITMAP "save.bmp"
CM_EDITUNDO BITMAP "undo.bmp"
CM_EDITCUT BITMAP "cut.bmp"
CM_EDITCOPY BITMAP "copy.bmp"
CM_EDITPASTE BITMAP "paste.bmp"
CM_EDITFIND BITMAP "find.bmp"
CM_EDITFINDNEXT BITMAP "findnext.bmp"
CM_FILEPRINTPREVIEW BITMAP "preview.bmp"
CM_HELPCONTENTS BITMAP "help.bmp"
CM_FILEPRINT BITMAP "print.bmp"
//
// Print Preview speed bar bitmaps
//
APX_PPR_PREVIOUS BITMAP "previous.bmp"
APX_PPR_NEXT BITMAP "next.bmp"
APX_PPR_ONEUP BITMAP "preview1.bmp"
APX_PPR_TWOUP BITMAP "preview2.bmp"
APX_PPR_DONE BITMAP "prexit.bmp"
//
// Misc application definitions
//
// MDI document ICON
//
IDI_DOC ICON "mdichild.ico"
// Application ICON
// Пиктограмма программы
IDI_MDIAPPLICATION ICON "appldocv.ico"
// About box.
// Диалог "О программе" можно редактировать строки и здесь
IDD_ABOUT DIALOG 50, 50, 250, 118
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "О программе FirstApp.exe"
FONT 8, "MS Sans Serif"
{
CONTROL "Версия 1.01", IDC_VERSION, "STATIC", SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 56, 16, 138, 8
CONTROL "Первое приложение", - 1, "STATIC", SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 44, 4, 164, 8
CONTROL "", IDC_COPYRIGHT, "STATIC", SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 12, 27, 228, 17
CONTROL "", IDC_DEBUG, "STATIC", SS_RIGHT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 36, 56, 172, 8
CONTROL IDI_MDIAPPLICATION, - 1, "STATIC", SS_ICON | WS_CHILD | WS_VISIBLE, 2, 2, 21, 20
CONTROL "Выход", IDOK, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 96, 100, 64, 14
CONTROL "Новая строка статического текста", IDC_STATICTEXT1, "static", SS_LEFT | WS_CHILD | WS_VISIBLE, 64, 86, 120, 8
}
// Printer abort box.
//
IDD_ABORTDIALOG DIALOG 84, 51, 130, 60
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Printing"
BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 46, 40, 40, 14, WS_TABSTOP
CTEXT "Now printing Page %d of", ID_PAGE, 0, 8, 130, 8, SS_CENTER | NOT WS_VISIBLE | WS_GROUP
CTEXT "Now printing", - 1, 0, 8, 130, 8,
CTEXT "'%s' on the", ID_TITLE, 0, 16, 130, 8
CTEXT "", ID_PORT, 0, 24, 130, 8, SS_CENTER | NOT WS_VISIBLE | WS_GROUP
CTEXT "%s on %s", ID_DEVICE, 0, 24, 130, 8
END
// Version info.
//
#if ! defined(__DEBUG_)
// Non-Debug VERSIONINFO
//
1 VERSIONINFO LOADONCALL MOVEABLE
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEFLAGSMASK 0
FILEFLAGS VS_FFI_FILEFLAGSMASK
#if defined(BI_PLAT_WIN32)
FILEOS VOS__WINDOWS32
#else
FILEOS VOS__WINDOWS16
#endif
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
// Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
BLOCK "040904E4" // Matches VarFileInfo Translation hex value.
BEGIN
VALUE "CompanyName", "\000"
VALUE "FileDescription", "FirstApp for Windows\000"
VALUE "FileVersion", "1.0\000"
VALUE "InternalName", "FirstApp\000"
VALUE "LegalCopyright", "Copyright © 2003. All Rights Reserved.\000"
VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000"
VALUE "OriginalFilename", "FirstApp.exe\000"
VALUE "ProductName", "FirstApp\000"
VALUE "ProductVersion", "1.0\000"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x04e4 // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
END
END
#else
// Debug VERSIONINFO
//
1 VERSIONINFO LOADONCALL MOVEABLE
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
FILEFLAGS VS_FFI_FILEFLAGSMASK
#if defined(BI_PLAT_WIN32)
FILEOS VOS__WINDOWS32
#else
FILEOS VOS__WINDOWS16
#endif
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
// Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
// Тип языка = американский английский язык (0x0409) и Набор символов = Windows, Многоязычный (0x04e4)
BLOCK "040904E4" // Matches VarFileInfo Translation hex value.
BEGIN
VALUE "CompanyName", "\000"
VALUE "FileDescription", "FirstApp for Windows\000"
VALUE "FileVersion", "1.0\000"
VALUE "InternalName", "FirstApp\000"
VALUE "LegalCopyright", "Copyright © 2003. All Rights Reserved.\000"
VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000"
VALUE "OriginalFilename", "FirstApp.exe\000"
VALUE "ProductName", "FirstApp\000"
VALUE "ProductVersion", "1.0\000"
VALUE "SpecialBuild", "Debug Version\000"
VALUE "PrivateBuild", "Built by \000"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x04e4 // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
END
END
#endif
|