⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basemenu.rc

📁 《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应的源码文件
💻 RC
字号:
//Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""res\\BaseMenu.rc2""  // non-Visual C++ edited resources\r\n"
    "\r\n"
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "#include ""afxres.rc""  \011// Standard components\r\n"
    "\0"
END

/////////////////////////////////////////////////////////////////////////////
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

IDR_MAINFRAME           ICON    DISCARDABLE     "res\\BaseMenu.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MAINFRAME MENU PRELOAD DISCARDABLE 
BEGIN
    POPUP "&Frame"
    BEGIN
        MENUITEM "&Top Half Move\tF2",          ID_FRAME_TOP
        MENUITEM "&Minimize\tF3",               ID_FRAME_MINIMIZE
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       ID_APP_EXIT
    END
    POPUP "&Title"
    BEGIN
        MENUITEM "Say &Hello\tCtrl+H",          ID_TITLE_HELLO
        MENUITEM "Say &Good-bye\tCtrl+G",       ID_TITLE_BYE
        MENUITEM SEPARATOR
        MENUITEM "&Query Title Text\tCtrl+T",   ID_TITLE_QUERY
    END
    POPUP "&Menu Item"
    BEGIN
        MENUITEM "&This Item",                  ID_MENU_THIS
        MENUITEM SEPARATOR
        MENUITEM "&Check / Uncheck",            ID_MENU_CHECK
        MENUITEM "&Enable / Disable",           ID_MENU_ENABLE
        MENUITEM SEPARATOR
        MENUITEM "&Append Menu Item",           ID_MENU_APPEND
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About BaseMenu...",          ID_APP_ABOUT
    END
END

IDR_TITLE MENU DISCARDABLE 
BEGIN
    POPUP "&Title Context Menu"
    BEGIN
        MENUITEM "Say Hello",                   ID_TITLE_HELLO
        MENUITEM "Say Goodbye",                 ID_TITLE_BYE
        MENUITEM SEPARATOR
        MENUITEM "Query Text",                  ID_TITLE_QUERY
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE 
BEGIN
    93,             ID_CONTEXT_MENU,        VIRTKEY, NOINVERT
    "G",            ID_TITLE_BYE,           VIRTKEY, CONTROL, NOINVERT
    "H",            ID_TITLE_HELLO,         VIRTKEY, CONTROL, NOINVERT
    "T",            ID_TITLE_QUERY,         VIRTKEY, CONTROL, NOINVERT
    VK_F10,         ID_CONTEXT_MENU,        VIRTKEY, SHIFT, NOINVERT
    VK_F2,          ID_FRAME_TOP,           VIRTKEY, NOINVERT
    VK_F3,          ID_FRAME_MINIMIZE,      VIRTKEY, NOINVERT
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOG DISCARDABLE  34, 22, 217, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About BaseMenu"
FONT 8, "MS Sans Serif"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,11,17,20,20
    LTEXT           "BaseMenu Version 1.0",IDC_STATIC,40,10,119,8
    LTEXT           "Copyright \251 1995",IDC_STATIC,40,25,119,8
    DEFPUSHBUTTON   "OK",IDOK,176,6,32,14,WS_GROUP
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "BASEMENU MFC Application\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "BASEMENU\0"
            VALUE "LegalCopyright", "Copyright \251 1995\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "BASEMENU.EXE\0"
            VALUE "ProductName", "BASEMENU Application\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END



/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE PRELOAD DISCARDABLE 
BEGIN
    IDR_MAINFRAME           "BaseMenu"
END

STRINGTABLE PRELOAD DISCARDABLE 
BEGIN
    AFX_IDS_APP_TITLE       "BaseMenu"
    AFX_IDS_IDLEMESSAGE     "Ready"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_INDICATOR_EXT        "EXT"
    ID_INDICATOR_CAPS       "CAP"
    ID_INDICATOR_NUM        "NUM"
    ID_INDICATOR_SCRL       "SCRL"
    ID_INDICATOR_OVR        "OVR"
    ID_INDICATOR_REC        "REC"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_FILE_NEW       "Create a new document\nNew"
    ID_FILE_OPEN      "Open an existing document\nOpen"
    ID_FILE_CLOSE     "Close the active document\nClose"
    ID_FILE_SAVE      "Save the active document\nSave"
    ID_FILE_SAVE_AS   "Save the active document with a new name\nSave As"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_APP_ABOUT  "Display program information, version & copyright\nAbout"
    ID_APP_EXIT   "Quit the application; prompts to save documents\nExit"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_FILE_MRU_FILE1 "Open this document"
    ID_FILE_MRU_FILE2 "Open this document"
    ID_FILE_MRU_FILE3 "Open this document"
    ID_FILE_MRU_FILE4 "Open this document"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_NEXT_PANE      "Switch to the next window pane\nNext Pane"
    ID_PREV_PANE      "Switch back to the previous window pane\nPrevious Pane"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_WINDOW_SPLIT   "Split the active window into panes\nSplit"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_EDIT_CLEAR      "Erase the selection\nErase"
    ID_EDIT_CLEAR_ALL  "Erase everything\nErase All"
    ID_EDIT_COPY       "Copy the selection and put it on the Clipboard\nCopy"
    ID_EDIT_CUT        "Cut the selection and put it on the Clipboard\nCut"
    ID_EDIT_FIND       "Find the specified text\nFind"
    ID_EDIT_PASTE      "Insert Clipboard contents\nPaste"
    ID_EDIT_REPEAT     "Repeat the last action\nRepeat"
    ID_EDIT_REPLACE    "Replace specific text with different text\nReplace"
    ID_EDIT_SELECT_ALL "Select the entire document\nSelect All"
    ID_EDIT_UNDO       "Undo the last action\nUndo"
    ID_EDIT_REDO       "Redo the previously undone action\nRedo"
END

STRINGTABLE DISCARDABLE 
BEGIN
    AFX_IDS_SCSIZE          "Change the window size"
    AFX_IDS_SCMOVE          "Change the window position"
    AFX_IDS_SCMINIMIZE      "Reduce the window to an icon"
    AFX_IDS_SCMAXIMIZE      "Enlarge the window to full size"
    AFX_IDS_SCNEXTWINDOW    "Switch to the next document window"
    AFX_IDS_SCPREVWINDOW    "Switch to the previous document window"
    AFX_IDS_SCCLOSE         "Close active window & prompt to save documents"
END

STRINGTABLE DISCARDABLE 
BEGIN
    AFX_IDS_SCRESTORE  "Restore the window to normal size"
    AFX_IDS_SCTASKLIST "Activate Task List"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_FRAME_TOP      "Move frame window to top half of display screen"
    ID_FRAME_MINIMIZE "Reduces the window to an icon"
    ID_TITLE_HELLO    "Displays a hello message in the title bar"
    ID_TITLE_BYE      "Displays a good-bye message in the title bar"
    ID_TITLE_QUERY    "Queries the frame window for the current title text"
    ID_MENU_THIS      "This is the item to check, uncheck, enable, and disable"
    ID_MENU_CHECK     "Toggles the checkmark on the top menu item"
    ID_MENU_ENABLE    "Toggles the enable state on the top menu item"
    ID_MENU_APPEND    "Adds a new menu item to this menu"
END


#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#include "res\BaseMenu.rc2"  // non-Microsoft Visual C++ edited resources

#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#include "afxres.rc"  	// Standard components

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -