windows-nt/Source/XPSP1/NT/base/wow64/tests/generic/generic.rc
2020-09-26 16:20:57 +08:00

336 lines
11 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "windows.h"
#include "generic.h"
#include "winver.h"
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
GENERIC ICON DISCARDABLE "GENERIC.ICO"
SMALL ICON DISCARDABLE "SMALL.ICO"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
GENERIC MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", IDM_NEW, GRAYED
MENUITEM "&Open...", IDM_OPEN, GRAYED
MENUITEM "&Save", IDM_SAVE, GRAYED
MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Print...", IDM_PRINT, GRAYED
MENUITEM "P&rint Setup...", IDM_PRINTSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\tCtrl+Z", IDM_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", IDM_CUT, GRAYED
MENUITEM "&Copy\tCtrl+C", IDM_COPY, GRAYED
MENUITEM "&Paste\tCtrl+V", IDM_PASTE, GRAYED
MENUITEM "Paste &Link", IDM_LINK, GRAYED
MENUITEM SEPARATOR
MENUITEM "Lin&ks...", IDM_LINKS, GRAYED
END
POPUP "&Help"
BEGIN
MENUITEM "&Contents", IDM_HELPCONTENTS, HELP
MENUITEM "&Search for Help On...", IDM_HELPSEARCH, HELP
MENUITEM "&How to Use Help", IDM_HELPHELP, HELP
MENUITEM SEPARATOR
MENUITEM "&About Generic...", IDM_ABOUT
END
END
WIN95 MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", IDM_NEW, GRAYED
MENUITEM "&Open...", IDM_OPEN, GRAYED
MENUITEM "&Save", IDM_SAVE, GRAYED
MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Print...", IDM_PRINT, GRAYED
MENUITEM "P&rint Setup...", IDM_PRINTSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\tCtrl+Z", IDM_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", IDM_CUT, GRAYED
MENUITEM "&Copy\tCtrl+C", IDM_COPY, GRAYED
MENUITEM "&Paste\tCtrl+V", IDM_PASTE, GRAYED
MENUITEM "Paste &Link", IDM_LINK, GRAYED
MENUITEM SEPARATOR
MENUITEM "Lin&ks...", IDM_LINKS, GRAYED
END
POPUP "&Help"
BEGIN
MENUITEM "&Help Topics...", IDM_HELPTOPICS
MENUITEM SEPARATOR
MENUITEM "&About Generic...", IDM_ABOUT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//
GENERIC ACCELERATORS MOVEABLE PURE
BEGIN
VK_F1, IDM_HELPCONTENTS, VIRTKEY
"?", IDM_ABOUT, ASCII, ALT
"/", IDM_ABOUT, ASCII, ALT
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
ABOUTBOX DIALOG DISCARDABLE 22, 17, 167, 74
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "System"
BEGIN
DEFPUSHBUTTON "OK",IDOK,132,2,32,14,WS_GROUP
ICON "Generic",IDC_STATIC,3,2,18,20
LTEXT "CompanyName",IDC_COMPANY,30,2,100,8
LTEXT "FileDescription",IDC_FILEDESC,30,10,71,8
RTEXT "ProductVersion",IDC_PRODVER,106,10,17,8
LTEXT "LegalCopyright",IDC_COPYRIGHT,30,18,137,8
LTEXT "OSVERSION",IDC_OSVERSION,46,34,118,8
LTEXT "LegalTrademarks",IDC_TRADEMARK,3,49,162,18
LTEXT "Running on:",IDC_LABEL,4,34,40,8
CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,31,164,1
CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,44,164,1
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
1 VERSIONINFO
FILEVERSION 3,5,0,0
PRODUCTVERSION 3,5,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0xbL
#else
FILEFLAGS 0xaL
#endif
FILEOS 0x10001L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "Comments", "Written by: Robert B. Hess\0"
VALUE "CompanyName", "Microsoft Corporation\0"
VALUE "FileDescription", "Generic Example Application\0"
VALUE "FileVersion", "0.0\0"
VALUE "InternalName", "Generic\0"
VALUE "LegalCopyright", "Copyright (C) Microsoft Corp. 1990 - 1995\0"
VALUE "LegalTrademarks", "Microsoft(R) is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
VALUE "OriginalFilename", "\0"
VALUE "ProductName", "Generic\0"
VALUE "ProductVersion", "3.6\0"
END
BLOCK "041104E4"
BEGIN
VALUE "Comments", "Written by: Robert B. Hess\0"
VALUE "CompanyName", "Microsoft Corporation\0"
VALUE "FileDescription", "Generic Example Application\0"
VALUE "FileVersion", "0.0\0"
VALUE "InternalName", "Generic\0"
VALUE "LegalCopyright", "Copyright (C) Microsoft Corp. 1990 - 1995\0"
VALUE "LegalTrademarks", "Microsoft(R) is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
VALUE "OriginalFilename", "\0"
VALUE "ProductName", "Generic\0"
VALUE "ProductVersion", "3.6\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 0x04E4, 0x411, 0x04E4
END
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_APP_TITLE "Generic: Sample Application"
IDS_DISPLAYCHANGED "Display Changed"
IDS_VER_INFO_LANG "\\StringFileInfo\\040904E4\\"
IDS_VERSION_ERROR "Error %lu"
IDS_NO_HELP "Unable to activate help"
END
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
#ifdef JAPAN
LANGUAGE LANG_JAPANESE, SUBLANG_NEUTRAL
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
GENERIC ICON DISCARDABLE "GENERIC.ICO"
SMALL ICON DISCARDABLE "SMALL.ICO"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
GENERIC MENU DISCARDABLE
BEGIN
POPUP "<22>t<EFBFBD>@<40>C<EFBFBD><43>(&F)"
BEGIN
MENUITEM "<22>V<EFBFBD>K<EFBFBD>쐬(&N)", IDM_NEW, GRAYED
MENUITEM "<22>J<EFBFBD><4A>(&O)...", IDM_OPEN, GRAYED
MENUITEM "<22><EFBFBD><E38F91><EFBFBD>ۑ<EFBFBD>(&S)", IDM_SAVE, GRAYED
MENUITEM "<22><><EFBFBD>O<EFBFBD><4F><EFBFBD>t<EFBFBD><74><EFBFBD>ĕۑ<C495>(&A)...", IDM_SAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "<22><><EFBFBD><EFBFBD>(&P)...", IDM_PRINT, GRAYED
MENUITEM "<22>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>^<5E>̐ݒ<CC90>(&R)...", IDM_PRINTSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "<22>I<EFBFBD><49>(&X)", IDM_EXIT
END
POPUP "<22>ҏW(&E)"
BEGIN
MENUITEM "<22><><EFBFBD>ɖ߂<C996>(&U)\tCtrl+Z", IDM_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "<22>؂<EFBFBD><D882><EFBFBD><EFBFBD><EFBFBD>(&T)\tCtrl+X", IDM_CUT, GRAYED
MENUITEM "<22>R<EFBFBD>s<EFBFBD>[(&C)\tCtrl+C", IDM_COPY, GRAYED
MENUITEM "<22>\<5C><><EFBFBD>t<EFBFBD><74>(&P)\tCtrl+V", IDM_PASTE, GRAYED
MENUITEM "<22><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>\<5C><><EFBFBD>t<EFBFBD><74>(&L)" IDM_LINK, GRAYED
MENUITEM SEPARATOR
MENUITEM "<22><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>̐ݒ<CC90>(&K)..." IDM_LINKS, GRAYED
END
POPUP "<22>w<EFBFBD><77><EFBFBD>v(&H)"
BEGIN
MENUITEM "<22>ڎ<EFBFBD>(&C)", IDM_HELPCONTENTS, HELP
MENUITEM "<22>L<EFBFBD>[<5B><><EFBFBD>[<5B>h<EFBFBD>Ō<EFBFBD><C58C><EFBFBD>(&S)...", IDM_HELPSEARCH, HELP
MENUITEM "<22>w<EFBFBD><77><EFBFBD>v<EFBFBD>̎g<CC8E><67><EFBFBD><EFBFBD>(&H)", IDM_HELPHELP, HELP
MENUITEM SEPARATOR
MENUITEM "<22>o<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(&A)...", IDM_ABOUT
END
END
WIN95 MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", IDM_NEW, GRAYED
MENUITEM "&Open...", IDM_OPEN, GRAYED
MENUITEM "&Save", IDM_SAVE, GRAYED
MENUITEM "Save &As...", IDM_SAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Print...", IDM_PRINT, GRAYED
MENUITEM "P&rint Setup...", IDM_PRINTSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\tCtrl+Z", IDM_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", IDM_CUT, GRAYED
MENUITEM "&Copy\tCtrl+C", IDM_COPY, GRAYED
MENUITEM "&Paste\tCtrl+V", IDM_PASTE, GRAYED
MENUITEM "Paste &Link", IDM_LINK, GRAYED
MENUITEM SEPARATOR
MENUITEM "Lin&ks...", IDM_LINKS, GRAYED
END
POPUP "&Help"
BEGIN
MENUITEM "&Help Topics...", IDM_HELPTOPICS
MENUITEM SEPARATOR
MENUITEM "&About Generic...", IDM_ABOUT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//
GENERIC ACCELERATORS MOVEABLE PURE
BEGIN
VK_F1, IDM_HELPCONTENTS, VIRTKEY
"?", IDM_ABOUT, ASCII, ALT
"/", IDM_ABOUT, ASCII, ALT
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
ABOUTBOX DIALOG DISCARDABLE 22, 17, 197, 74
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "<22>o<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
FONT 8, "System"
BEGIN
DEFPUSHBUTTON "OK",IDOK,160,2,32,14,WS_GROUP
ICON "Generic",IDC_STATIC,3,2,18,20
LTEXT "CompanyName",IDC_COMPANY,30,2,121,8
LTEXT "FileDescription",IDC_FILEDESC,30,10,102,8
RTEXT "ProductVersion",IDC_PRODVER,134,10,17,8
LTEXT "LegalCopyright",IDC_COPYRIGHT,30,18,162,8
LTEXT "OSVERSION",IDC_OSVERSION,46,34,146,8
LTEXT "LegalTrademarks",IDC_TRADEMARK,3,49,189,18
LTEXT "Running on:",IDC_LABEL,4,34,40,8
CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,31,192,1
CONTROL "",IDC_STATIC,"Static",SS_BLACKRECT,2,44,192,1
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_APP_TITLE "Generic: <20>T<EFBFBD><54><EFBFBD>v<EFBFBD><76> <20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD>"
IDS_DISPLAYCHANGED "<22>f<EFBFBD>B<EFBFBD>X<EFBFBD>v<EFBFBD><76><EFBFBD>C<EFBFBD>̐ݒ肪<DD92>ύX<CF8D><58><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD>"
IDS_VER_INFO_LANG "\\StringFileInfo\\041104E4\\"
IDS_VERSION_ERROR "<22>G<EFBFBD><47><EFBFBD>[ %lu"
IDS_NO_HELP "<22>w<EFBFBD><77><EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD>"
END
#endif