COMUSER.RC
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:7k
源码类别:
Windows编程
开发平台:
Visual C++
- //===========================================================================
- // File: COMUSER.RC
- //
- // Summary: Resource definition file for COMUSER.EXE.
- //
- // Origin: 8-20-95: atrent - Editor-inheritance from the DLLUSER source.
- //
- // -------------------------------------------------------------------------
- // This file is part of the Microsoft COM Tutorial Code Samples.
- //
- // Copyright (C) Microsoft Corporation, 1997. All rights reserved.
- //
- // This source code is intended only as a supplement to Microsoft
- // Development Tools and/or on-line documentation. See these other
- // materials for detailed information regarding Microsoft code samples.
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
- // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
- // PARTICULAR PURPOSE.
- //===========================================================================
- // We include ole2.h because we're defining the Version Info.
- // We include COMUSER.H for Resource IDs unique to COMUSER.EXE.
- #include <ole2.h>
- #include "comuser.h"
- // The main keyboard accelerator resource table.
- AppAccel ACCELERATORS MOVEABLE PURE
- BEGIN
- VK_F1, IDM_HELP_CONTENTS, VIRTKEY
- "?", IDM_HELP_CONTENTS, ASCII
- END
- // The About Box dialog resource.
- IDM_HELP_ABOUT DIALOG DISCARDABLE 67, 46, 196, 53
- STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
- CAPTION "About COMUSER"
- FONT 8, "MS Shell Dlg"
- BEGIN
- ICON "AppIcon",-1,6,7,18,20
- LTEXT "Tutorial Code Sample: COMUSER Version 1.0",-1,32,7,
- 155,8,NOT WS_GROUP
- LTEXT "Copyright 1997 Microsoft Corporation",-1,32,18,155,
- 8,NOT WS_GROUP
- PUSHBUTTON "OK",IDOK,75,32,40,14
- END
- // The main icon resource for the application.
- AppIcon ICON DISCARDABLE "comuser.ico"
- // The main menu resource definition.
- COMUSERMENU MENU DISCARDABLE
- BEGIN
- POPUP "&File"
- BEGIN
- MENUITEM "E&xit", IDM_FILE_EXIT
- END
- POPUP "&Car"
- BEGIN
- MENUITEM "&Create", IDM_CAR_CREATE
- MENUITEM "&Release", IDM_CAR_RELEASE
- MENUITEM SEPARATOR
- MENUITEM "ICar::&Shift" IDM_CAR_SHIFT
- MENUITEM "ICar::C&lutch" IDM_CAR_CLUTCH
- MENUITEM "ICar::S&peed" IDM_CAR_SPEED
- MENUITEM "ICar::S&teer" IDM_CAR_STEER
- END
- POPUP "&UtilityCar"
- BEGIN
- MENUITEM "&Create", IDM_UCAR_CREATE
- MENUITEM "&Release", IDM_UCAR_RELEASE
- MENUITEM SEPARATOR
- MENUITEM "ICar::&Shift" IDM_UCAR_SHIFT
- MENUITEM "ICar::C&lutch" IDM_UCAR_CLUTCH
- MENUITEM "ICar::S&peed" IDM_UCAR_SPEED
- MENUITEM "ICar::S&teer" IDM_UCAR_STEER
- MENUITEM SEPARATOR
- MENUITEM "IUtility::&Offroad" IDM_UCAR_OFFROAD
- MENUITEM "IUtility::&Winch" IDM_UCAR_WINCH
- END
- POPUP "C&ruiseCar"
- BEGIN
- MENUITEM "&Create", IDM_CCAR_CREATE
- MENUITEM "&Release", IDM_CCAR_RELEASE
- MENUITEM SEPARATOR
- MENUITEM "ICar::&Shift" IDM_CCAR_SHIFT
- MENUITEM "ICar::C&lutch" IDM_CCAR_CLUTCH
- MENUITEM "ICar::S&peed" IDM_CCAR_SPEED
- MENUITEM "ICar::S&teer" IDM_CCAR_STEER
- MENUITEM SEPARATOR
- MENUITEM "ICruise::&Engage" IDM_CCAR_ENGAGE
- MENUITEM "ICruise::&Adjust" IDM_CCAR_ADJUST
- END
- POPUP "U&tilityCruiseCar"
- BEGIN
- MENUITEM "&Create", IDM_UCRU_CREATE
- MENUITEM "&Release", IDM_UCRU_RELEASE
- MENUITEM SEPARATOR
- MENUITEM "ICar::&Shift" IDM_UCRU_SHIFT
- MENUITEM "ICar::C&lutch" IDM_UCRU_CLUTCH
- MENUITEM "ICar::S&peed" IDM_UCRU_SPEED
- MENUITEM "ICar::S&teer" IDM_UCRU_STEER
- MENUITEM SEPARATOR
- MENUITEM "ICruise::&Engage" IDM_UCRU_ENGAGE
- MENUITEM "ICruise::&Adjust" IDM_UCRU_ADJUST
- MENUITEM SEPARATOR
- MENUITEM "IUtility::&Offroad" IDM_UCRU_OFFROAD
- MENUITEM "IUtility::&Winch" IDM_UCRU_WINCH
- END
- POPUP "&Log"
- BEGIN
- MENUITEM "&Clear", IDM_LOG_LOGCLEAR
- MENUITEM "&Logging", IDM_LOG_LOGGING, CHECKED
- MENUITEM "C&opy", IDM_LOG_COPYCLIP
- END
- POPUP "&Help"
- BEGIN
- // MENUITEM "&Help Topics", IDM_HELP_CONTENTS
- MENUITEM "COMUSER &Tutorial", IDM_HELP_TUTORIAL
- MENUITEM "COM&OBJ Tutorial", IDM_HELP_TUTDLL
- MENUITEM "Read Source &File...", IDM_HELP_READSOURCE
- MENUITEM SEPARATOR
- MENUITEM "&About COMUSER...", IDM_HELP_ABOUT
- MENUITEM "A&bout COMOBJ...", IDM_HELP_ABOUTDLL
- END
- END
- // Error Box String Resources.
- STRINGTABLE DISCARDABLE
- BEGIN
- IDS_COMINITFAILED "COMUSER: COM initialization failed."
- IDS_APPINITFAILED "COMUSER: App initialization failed."
- IDS_OUTOFMEMORY "COMUSER: Ran out of memory."
- IDS_UNICODEFAIL "COMUSER: Can't run with Unicode."
- IDS_ASSERT_FAIL "COMUSER: Assertion Failed."
- END
- // Notice Box and Message log String Resources.
- STRINGTABLE DISCARDABLE
- BEGIN
- IDS_START_MESSAGE_LOG "========== Trace Message Log =========="
- END
- // If being read in by AppStudio we don't confuse it with this Version Info.
- #ifndef APSTUDIO_INVOKED
- // The version information for the binary.
- VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,0
- PRODUCTVERSION 1,0,0,0
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
- #ifndef DEBUG
- FILEFLAGS 0
- #else
- FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
- #endif
- FILEOS VOS_NT_WINDOWS32
- FILETYPE VFT_APP
- FILESUBTYPE VFT2_UNKNOWN
- BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- #ifdef UNICODE
- BLOCK "040904B0" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=Unicode
- #else
- BLOCK "040904E4" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=MultiLang
- #endif
- BEGIN
- VALUE "CompanyName", "Microsoft Corporation"
- VALUE "FileDescription", "COMUSER: Tutorial Code Sample"
- VALUE "FileVersion", "1.00"
- VALUE "InternalName", "COMUSER"
- VALUE "LegalCopyright", "Copyright 251 1997 Microsoft Corp. "
- VALUE "OriginalFilename","COMUSER.EXE"
- VALUE "ProductName", "Microsoft256 Tutorial Code Samples"
- VALUE "ProductVersion", "1.00"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- #ifdef UNICODE
- VALUE "Translation", 0x409, 1200 //English (0x409), Unicode (1200)
- #else
- VALUE "Translation", 0x409, 1252 //English (0x409), ANSI (1252)
- #endif
- END
- END
- #endif