home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
winutil
/
adg_7_8
/
mdi.rc
< prev
next >
Wrap
Text File
|
1991-02-21
|
14KB
|
345 lines
/****************************************************************************
Module name: MDI.RC
Programmer : Jeffrey M. Richter & Elvira Peretsman.
****************************************************************************/
#include <windows.h>
#include "mdi.h"
#include "mdi.dlg"
Sheet ICON Sheet.ico
Chart ICON Chart.ico
Frame ICON MDI.ico
/************** Frame Menu Setup (No open documents) ************************/
Frame MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "Open &sheet", IDM_FILEOPENSHEET
MENUITEM "Open &chart", IDM_FILEOPENCHART
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Help"
BEGIN
MENUITEM "&Index", IDM_HELPINDEX
MENUITEM "&Keyboard", IDM_HELPKEYBOARD
MENUITEM "&Commands", IDM_HELPCOMMANDS
MENUITEM "&Procedures", IDM_HELPPROCEDURES
MENUITEM "&Using Help", IDM_HELPUSINGHELP
MENUITEM SEPARATOR
MENUITEM "&About...", IDM_ABOUT
END
END
// Menu help descriptions for Frame's top-level menu.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_FRAMEPOPUPID + 0, "Move, size, or close the application window"
IDS_FRAMEPOPUPID + 1, "Open, print or save documents; quit MDI Application"
IDS_FRAMEPOPUPID + 2, "Get help"
END
// Menu help descriptions for Frame's menu items.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_FRAMEMENUID + IDM_SYSMENUSIZE, "Changes window size"
IDS_FRAMEMENUID + IDM_SYSMENUMOVE, "Changes window position"
IDS_FRAMEMENUID + IDM_SYSMENUMINIMIZE, "Reduces window to an icon"
IDS_FRAMEMENUID + IDM_SYSMENUMAXIMIZE, "Enlarges the window to full size"
IDS_FRAMEMENUID + IDM_SYSMENUCLOSE, "Quit MDI Application; prompts to save documents"
IDS_FRAMEMENUID + IDM_SYSMENURESTORE, "Restores window to normal size"
IDS_FRAMEMENUID + IDM_SYSMENUTASKLIST, "Make another application active"
IDS_FRAMEMENUID + IDM_FILEOPENSHEET, "Open new sheet"
IDS_FRAMEMENUID + IDM_FILEOPENCHART, "Open new chart"
IDS_FRAMEMENUID + IDM_EXIT, "Quit MDI Application; prompts to save documents"
IDS_FRAMEMENUID + IDM_HELPINDEX, "Lists Help topics"
IDS_FRAMEMENUID + IDM_HELPKEYBOARD, "Lists keys and their actions"
IDS_FRAMEMENUID + IDM_HELPCOMMANDS, "Lists help on commands"
IDS_FRAMEMENUID + IDM_HELPPROCEDURES, "Lists help on various procedures"
IDS_FRAMEMENUID + IDM_HELPUSINGHELP, "How to use the help system"
IDS_FRAMEMENUID + IDM_ABOUT, "Displays program information"
END
/***************************** Sheet Menu ***********************************/
Sheet ACCELERATORS
BEGIN
VK_DELETE, IDM_EDITCUT, VIRTKEY, SHIFT
VK_INSERT, IDM_EDITCOPY, VIRTKEY, CONTROL
VK_INSERT, IDM_EDITPASTE, VIRTKEY, SHIFT
END
Sheet MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "Open &sheet", IDM_FILEOPENSHEET
MENUITEM "Open &chart", IDM_FILEOPENCHART
MENUITEM SEPARATOR
MENUITEM "&Save", IDM_FILESAVE
MENUITEM "Save &as...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "&Print", IDM_FILEPRINT
MENUITEM "P&rinter setup...", IDM_FILEPRINTERSETUP
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Cu&t\tShift+Del", IDM_EDITCUT
MENUITEM "&Copy\tCtrl+Ins", IDM_EDITCOPY
MENUITEM "&Paste\tShift+Ins", IDM_EDITPASTE
END
POPUP "&Sheet"
BEGIN
MENUITEM "Sheet option", IDM_SHEETOPTION
END
POPUP "&Options"
BEGIN
MENUITEM "&Status", IDM_OPTIONSSTATUS
MENUITEM "&Ribbon", IDM_OPTIONSRIBBON
END
POPUP "&Window"
BEGIN
MENUITEM "Tile &vertically", IDM_WINDOWTILEVERT
MENUITEM "Tile &horizontally", IDM_WINDOWTILEHORIZ
MENUITEM "&Cascade", IDM_WINDOWCASCADE
MENUITEM "&Arrange icons", IDM_WINDOWARRANGEICONS
END
POPUP "&Help"
BEGIN
MENUITEM "&Index", IDM_HELPINDEX
MENUITEM "&Keyboard", IDM_HELPKEYBOARD
MENUITEM "&Commands", IDM_HELPCOMMANDS
MENUITEM "&Procedures", IDM_HELPPROCEDURES
MENUITEM "&Using Help", IDM_HELPUSINGHELP
MENUITEM SEPARATOR
MENUITEM "&About...", IDM_ABOUT
END
END
// Menu help descriptions for Sheet's top-level menu.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_SHEETPOPUPID + 0, "Move, size, or close the active sheet"
IDS_SHEETPOPUPID + 1, "Open, print or save the sheet; quit MDI Application"
IDS_SHEETPOPUPID + 2, "Cut, copy, and paste"
IDS_SHEETPOPUPID + 3, "Perform sheet specific operations"
IDS_SHEETPOPUPID + 4, "Toggle visibility of status bar and ribbon"
IDS_SHEETPOPUPID + 5, "Rearrange windows or activates specified window"
IDS_SHEETPOPUPID + 6, "Get help"
END
// Menu help descriptions for Sheet's menu items.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_SHEETMENUID + IDM_SYSMENUSIZE, "Changes sheet's size"
IDS_SHEETMENUID + IDM_SYSMENUMOVE, "Changes sheet's position"
IDS_SHEETMENUID + IDM_SYSMENUMINIMIZE, "Reduces sheet to an icon"
IDS_SHEETMENUID + IDM_SYSMENUMAXIMIZE, "Enlarges sheet to full size"
IDS_SHEETMENUID + IDM_SYSMENUCLOSE, "Closes the sheet; prompts to save"
IDS_SHEETMENUID + IDM_SYSMENURESTORE, "Restores sheet to normal size"
IDS_SHEETMENUID + IDM_SYSMENUNEXTWINDOW, "Switches to the next sheet or chart document"
IDS_SHEETMENUID + IDM_FILEOPENSHEET, "Open new sheet"
IDS_SHEETMENUID + IDM_FILEOPENCHART, "Open new chart"
IDS_SHEETMENUID + IDM_FILESAVE, "Save the active sheet (%s)"
IDS_SHEETMENUID + IDM_FILESAVEAS, "Save the active sheet with a new name"
IDS_SHEETMENUID + IDM_FILEPRINT, "Print the active sheet (%s)"
IDS_SHEETMENUID + IDM_FILEPRINTERSETUP, "Changes the printer and printing options"
IDS_SHEETMENUID + IDM_EXIT, "Quit MDI Application; prompts to save documents"
IDS_SHEETMENUID + IDM_EDITCUT, "Cuts the selection from %s and puts it on the Clipboard"
IDS_SHEETMENUID + IDM_EDITCOPY, "Copies the selection from %s and puts it on the Clipboard"
IDS_SHEETMENUID + IDM_EDITPASTE, "Inserts Clipboard contents into %s"
IDS_SHEETMENUID + IDM_SHEETOPTION, "Perform some sheet related operation on %s"
IDS_SHEETMENUID + IDM_OPTIONSSTATUS, "Toggles the status bar on/off"
IDS_SHEETMENUID + IDM_OPTIONSRIBBON, "Toggles the ribbon on/off"
IDS_SHEETMENUID + IDM_WINDOWTILEVERT, "Tiles windows vertically"
IDS_SHEETMENUID + IDM_WINDOWTILEHORIZ, "Tiles windows horizontally"
IDS_SHEETMENUID + IDM_WINDOWCASCADE, "Arranges windows in a cascading fashion"
IDS_SHEETMENUID + IDM_WINDOWARRANGEICONS, "Arranges iconic windows"
IDS_SHEETMENUID + IDM_HELPINDEX, "Lists Help topics"
IDS_SHEETMENUID + IDM_HELPKEYBOARD, "Lists keys and their actions"
IDS_SHEETMENUID + IDM_HELPCOMMANDS, "Lists help on commands"
IDS_SHEETMENUID + IDM_HELPPROCEDURES, "Lists help on various procedures"
IDS_SHEETMENUID + IDM_HELPUSINGHELP, "How to use the help system"
IDS_SHEETMENUID + IDM_ABOUT, "Displays program information"
IDS_SHEETMENUID + IDM_WINDOWCHILD, "Switches to the window containing this document"
END
/****************************** Chart Menu **********************************/
Chart ACCELERATORS
BEGIN
VK_DELETE, IDM_EDITCUT, VIRTKEY, SHIFT
VK_INSERT, IDM_EDITCOPY, VIRTKEY, CONTROL
VK_INSERT, IDM_EDITPASTE, VIRTKEY, SHIFT
END
Chart MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "Open &sheet", IDM_FILEOPENSHEET
MENUITEM "Open &chart", IDM_FILEOPENCHART
MENUITEM SEPARATOR
MENUITEM "&Save", IDM_FILESAVE
MENUITEM "Save &as...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "&Print", IDM_FILEPRINT
MENUITEM "P&rinter setup", IDM_FILEPRINTERSETUP
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Cu&t\tShift+Del", IDM_EDITCUT
MENUITEM "&Copy\tCtrl+Ins", IDM_EDITCOPY
MENUITEM "&Paste\tShift+Ins", IDM_EDITPASTE
END
POPUP "&Chart"
BEGIN
MENUITEM "Chart option", IDM_CHARTOPTION
END
POPUP "&Options"
BEGIN
MENUITEM "&Status", IDM_OPTIONSSTATUS
MENUITEM "&Ribbon", IDM_OPTIONSRIBBON
END
POPUP "&Window"
BEGIN
MENUITEM "Tile &vertically", IDM_WINDOWTILEVERT
MENUITEM "Tile &horizontally", IDM_WINDOWTILEHORIZ
MENUITEM "&Cascade", IDM_WINDOWCASCADE
MENUITEM "&Arrange icons", IDM_WINDOWARRANGEICONS
END
POPUP "&Help"
BEGIN
MENUITEM "&Index", IDM_HELPINDEX
MENUITEM "&Keyboard", IDM_HELPKEYBOARD
MENUITEM "&Commands", IDM_HELPCOMMANDS
MENUITEM "&Procedures", IDM_HELPPROCEDURES
MENUITEM "&Using Help", IDM_HELPUSINGHELP
MENUITEM SEPARATOR
MENUITEM "&About...", IDM_ABOUT
END
END
// Menu help descriptions for Chart's top-level menu.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_CHARTPOPUPID + 0, "Move, size, or close the active chart"
IDS_CHARTPOPUPID + 1, "Open, print or save the chart; quit MDI Application"
IDS_CHARTPOPUPID + 2, "Cut, copy, and paste"
IDS_CHARTPOPUPID + 3, "Perform chart specific operations"
IDS_CHARTPOPUPID + 4, "Toggle visibility of status bar and ribbon"
IDS_CHARTPOPUPID + 5, "Rearrange windows or activates specified window"
IDS_CHARTPOPUPID + 6, "Get help"
END
// Menu help descriptions for Chart's menu items.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_CHARTMENUID + IDM_SYSMENUSIZE, "Changes chart's size"
IDS_CHARTMENUID + IDM_SYSMENUMOVE, "Changes chart's position"
IDS_CHARTMENUID + IDM_SYSMENUMINIMIZE, "Reduces chart to an icon"
IDS_CHARTMENUID + IDM_SYSMENUMAXIMIZE, "Enlarges chart to full size"
IDS_CHARTMENUID + IDM_SYSMENUCLOSE, "Closes the chart; prompts to save"
IDS_CHARTMENUID + IDM_SYSMENURESTORE, "Restores chart to normal size"
IDS_CHARTMENUID + IDM_SYSMENUNEXTWINDOW, "Switches to the next sheet or chart document"
IDS_CHARTMENUID + IDM_FILEOPENSHEET, "Open new sheet"
IDS_CHARTMENUID + IDM_FILEOPENCHART, "Open new chart"
IDS_CHARTMENUID + IDM_FILESAVE, "Save the active chart (%s)"
IDS_CHARTMENUID + IDM_FILESAVEAS, "Save the active char with a new name"
IDS_CHARTMENUID + IDM_FILEPRINT, "Print the active chart (%s)"
IDS_CHARTMENUID + IDM_FILEPRINTERSETUP, "Changes the printer and printing options"
IDS_CHARTMENUID + IDM_EXIT, "Quit MDI Application; prompts to save documents"
IDS_CHARTMENUID + IDM_EDITCUT, "Cuts the selection from %s and puts it on the Clipboard"
IDS_CHARTMENUID + IDM_EDITCOPY, "Copies the selection from %s and puts it on the Clipboard"
IDS_CHARTMENUID + IDM_EDITPASTE, "Inserts Clipboard contents into %s"
IDS_CHARTMENUID + IDM_CHARTOPTION, "Perform some chart related operation on %s"
IDS_CHARTMENUID + IDM_OPTIONSSTATUS, "Toggles the status bar on/off"
IDS_CHARTMENUID + IDM_OPTIONSRIBBON, "Toggles the ribbon on/off"
IDS_CHARTMENUID + IDM_WINDOWTILEVERT, "Tiles windows vertically"
IDS_CHARTMENUID + IDM_WINDOWTILEHORIZ, "Tiles windows horizontally"
IDS_CHARTMENUID + IDM_WINDOWCASCADE, "Arranges windows in a cascading fashion"
IDS_CHARTMENUID + IDM_WINDOWARRANGEICONS, "Arranges iconic windows"
IDS_CHARTMENUID + IDM_HELPINDEX, "Lists Help topics"
IDS_CHARTMENUID + IDM_HELPKEYBOARD, "Lists keys and their actions"
IDS_CHARTMENUID + IDM_HELPCOMMANDS, "Lists help on commands"
IDS_CHARTMENUID + IDM_HELPPROCEDURES, "Lists help on various procedures"
IDS_CHARTMENUID + IDM_HELPUSINGHELP, "How to use the help system"
IDS_CHARTMENUID + IDM_ABOUT, "Displays program information"
IDS_CHARTMENUID + IDM_WINDOWCHILD, "Switches to the window containing this document"
END
/**************** String tables to fill comboboxes in Ribbon ****************/
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_FONT + 0, "Courier"
IDS_FONT + 1, "Helv"
IDS_FONT + 2, "Modern"
IDS_FONT + 3, "Roman"
IDS_FONT + 4, "Script"
IDS_FONT + 5, "Symbol"
IDS_FONT + 6, "System"
IDS_FONT + 7, "Terminal"
END
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_SIZE + 0, "10"
IDS_SIZE + 1, "12"
IDS_SIZE + 2, "15"
IDS_SIZE + 3, "18"
IDS_SIZE + 4, "22"
IDS_SIZE + 5, "28"
END
// Status bar statistics line for Frame and MDI Children windows.
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_FRAMESTATUSBAR, "Frame status line"
IDS_SHEETSTATUSBAR, "Sheet status line"
IDS_CHARTSTATUSBAR, "Chart status line"
END