home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
begin
/
generic
/
generic.rc
< prev
next >
Wrap
Text File
|
1996-04-08
|
11KB
|
336 lines
#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 "âtâ@âCâï(&F)"
BEGIN
MENUITEM "ÉVïKì∞ɼ(&N)", IDM_NEW, GRAYED
MENUITEM "èJé¡(&O)...", IDM_OPEN, GRAYED
MENUITEM "ÅπÅæé½ò█æ╢(&S)", IDM_SAVE, GRAYED
MENUITEM "û╝æOé≡òté»é─ò█æ╢(&A)...", IDM_SAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "ê≤ìⁿ(&P)...", IDM_PRINT, GRAYED
MENUITEM "âvâèâôâ^é╠É▌ÆΦ(&R)...", IDM_PRINTSETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "ÅIù╣(&X)", IDM_EXIT
END
POPUP "ò╥ÅW(&E)"
BEGIN
MENUITEM "î│é╔û▀é╖(&U)\tCtrl+Z", IDM_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "É╪éΦĵéΦ(&T)\tCtrl+X", IDM_CUT, GRAYED
MENUITEM "âRâsü[(&C)\tCtrl+C", IDM_COPY, GRAYED
MENUITEM "ô\éΦòté»(&P)\tCtrl+V", IDM_PASTE, GRAYED
MENUITEM "âèâôâNô\éΦòté»(&L)" IDM_LINK, GRAYED
MENUITEM SEPARATOR
MENUITEM "âèâôâNé╠É▌ÆΦ(&K)..." IDM_LINKS, GRAYED
END
POPUP "âwâïâv(&H)"
BEGIN
MENUITEM "û┌ă(&C)", IDM_HELPCONTENTS, HELP
MENUITEM "âLü[âÅü[âhé┼îƒì⌡(&S)...", IDM_HELPSEARCH, HELP
MENUITEM "âwâïâvé╠Ägéóò√(&H)", IDM_HELPHELP, HELP
MENUITEM SEPARATOR
MENUITEM "âoü[âWâçâôÅεò±(&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 "âoü[âWâçâôÅεò±"
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: âTâôâvâï âAâvâèâPü[âVâçâô"
IDS_DISPLAYCHANGED "âfâBâXâvâîâCé╠É▌ÆΦé¬ò╧ìXé│éΩé▄é╡é╜"
IDS_VER_INFO_LANG "\\StringFileInfo\\041104E4\\"
IDS_VERSION_ERROR "âGâëü[ %lu"
IDS_NO_HELP "âwâïâvé≡Ä└ìsé┼é½é▄é╣é±"
END
#endif