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

📄 resource.rc

📁 使用INI文件的读取来完成多语言版本的实现
💻 RC
字号:
//Microsoft Developer Studio generated resource script.
//
#include "Resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "Windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS

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

/////////////////////////////////////////////////////////////////////////////
// Neutral (Default) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUD)
#ifdef _WIN32
LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT
#pragma code_page(936)
#endif //_WIN32

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

1 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "Resource.h\0"
END

2 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""Windows.h""\r\n"
    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "\0"
END

3 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // Neutral (Default) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Chinese (P.R.C.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
#ifdef _WIN32
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#pragma code_page(936)
#endif //_WIN32

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

IDR_Menu MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Open...\tCtrl+O",            IDM_File_Open, GRAYED
        MENUITEM "Re&load\tCtrl+L",             IDM_File_Reload, GRAYED
        MENUITEM "&Close\tCtrl+W",              IDM_File_Close, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Save Selection\tCtrl+S",     IDM_File_Save, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Acquire From &TWAIN Device...", IDM_File_Twain, GRAYED
        MENUITEM "Acquire From &WIA Device...", IDM_File_Wia, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDM_File_Exit
    END
    POPUP "&Selection"
    BEGIN
        MENUITEM "Dra&g Select\tCtrl+D",        IDM_Sel_DragSelect, GRAYED
        MENUITEM "&Fixed Select\tCtrl+F",       IDM_Sel_FixedSelect, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "A&uto Select\tCtrl+U",        IDM_Sel_AutoSelect, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Select &All\tCtrl+A",         IDM_Sel_SelectAll, GRAYED
        MENUITEM "Select &Inverse\tCtrl+Q",     IDM_Sel_SelectInverse
        , GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Delete\tDel",                IDM_Sel_Delete, GRAYED
        MENUITEM "D&elete All\tCtrl+Del",       IDM_Sel_DeleteAll, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Ad&just Index\tCtrl+J",       IDM_Sel_AdjustIndex, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Load &Templet...\tCtrl+T",    IDM_Sel_LoadTemplet, GRAYED
        MENUITEM "Save As Te&mplet...\tCtrl+M", IDM_Sel_SaveTemplet, GRAYED
        MENUITEM "Save As Defau&lt Templet\tCtrl+K", IDM_Sel_DefaultTemplet
        , GRAYED
    END
    POPUP "&Image"
    BEGIN
        MENUITEM "&Undo\tCtrl+Z",               IDM_Image_Undo, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Image Size...\tCtrl+I",      IDM_Image_Stretch, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Flip &Horizon\tCtrl+H",       IDM_Image_FlipHorizon
        , GRAYED
        MENUITEM "Flip &Vertical\tCtrl+V",      IDM_Image_FlipVertical
        , GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Rotate &90\tCtrl+9",          IDM_Image_Rotate90, GRAYED
        MENUITEM "Rotate &180\tCtrl+1",         IDM_Image_Rotate180, GRAYED
        MENUITEM "Rotate &270\tCtrl+2",         IDM_Image_Rotate270, GRAYED
        MENUITEM "&Rotate...\tCtrl+R",          IDM_Image_Rotate, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Decolourize\tCtrl+G",        IDM_Image_Decolourize
        , GRAYED
        MENUITEM "&Negative\tCtrl+N",           IDM_Image_Negative, GRAYED
        MENUITEM "E&xpose\tCtrl+X",             IDM_Image_Expose, GRAYED
        MENUITEM "&Emboss\tCtrl+E",             IDM_Image_Emboss, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Adjust &Color...\tCtrl+B",    IDM_Image_Adjust, GRAYED
    END
    POPUP "&View"
    BEGIN
        MENUITEM "&Toolbar",                    IDM_View_Toolbar, GRAYED
        MENUITEM "Stat&us Bar",                 IDM_View_StatusBar, CHECKED
        MENUITEM SEPARATOR
        MENUITEM "Always O&n Top",              IDM_View_AlwaysOnTop, GRAYED
        MENUITEM "Minimize To Tra&y\tCtrl+Y",   IDM_View_MinToTray, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Zoom &In\tShift+I",           IDM_View_ZoomIn, GRAYED
        MENUITEM "Zoom &Out\tShift+O",          IDM_View_ZoomOut, GRAYED
        MENUITEM "Zoom &Window\tShift+W",       IDM_View_ZoomWindow, GRAYED
        MENUITEM "Zoom &Actual\tShift+A",       IDM_View_ZoomActual, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Setting...\tF4",             IDM_View_Setting
        MENUITEM SEPARATOR
        POPUP "&Language"
        BEGIN
            MENUITEM "&Default",                    IDM_View_Default
        END
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&Help Content",               IDM_Help_Content, GRAYED
        MENUITEM SEPARATOR
        POPUP "Create &Shortcut"
        BEGIN
            MENUITEM "On Des&ktop",                 IDM_Help_Desktop, GRAYED
            MENUITEM "On Sta&rt Menu",              IDM_Help_StartMenu
            , GRAYED
            MENUITEM "On &Program Menu",            IDM_Help_ProgramMenu
            , GRAYED
            MENUITEM "On &Quick Launch Toolbar",    IDM_Help_QuickLaunch
            , GRAYED
        END
        MENUITEM SEPARATOR
        MENUITEM "&About CuteFoto...",          IDM_Help_About, GRAYED
    END
END


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

IDD_Setting DIALOGEX 0, 0, 253, 251
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Setting"
FONT 9, "宋体", 400, 0, 0x86
BEGIN
    GROUPBOX        "General",IDC_Setting_GeneralFrame,7,7,238,119
    CONTROL         "&Show splash at startup.",IDC_Setting_ShowSplash,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,17,21,179,11
    CONTROL         "&Show open file dialog at startup.",
                    IDC_Setting_ShowOpen,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,17,38,179,11
    CONTROL         "Show &index in the selection.",IDC_Setting_ShowIndex,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,17,55,219,11
    CONTROL         "Sa&ve file histroy.",IDC_Setting_SaveRecent,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,17,72,89,11
    LTEXT           "&Count:",IDC_Setting_RecentCountText,111,74,33,8
    EDITTEXT        IDC_Setting_RecentCount,146,71,32,13,ES_NUMBER
    CONTROL         "",IDC_Setting_RecentCountSpin,"msctls_updown32",
                    UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | 
                    UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_HOTTRACK,166,66,11,
                    13
    PUSHBUTTON      "C&lear",IDC_Setting_ClearRecent,188,71,50,14
    CONTROL         "Select filena&me automatically while acquire image.",
                    IDC_Setting_AutoAcquireName,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,17,89,220,11
    RTEXT           "&Path:",IDC_Setting_PathText,17,106,34,8
    EDITTEXT        IDC_Setting_PicturesPath,55,104,123,13,ES_AUTOHSCROLL
    PUSHBUTTON      "&Browse...",IDC_Setting_Browse,188,104,50,14
    GROUPBOX        "Fixed Selection",IDC_Setting_FixedFrame,7,134,238,36
    RTEXT           "&Width:",IDC_Setting_FixedWidthText,17,150,34,8
    EDITTEXT        IDC_Setting_FixedWidth,55,147,32,13,ES_NUMBER
    CONTROL         "",IDC_Setting_FixedWidthSpin,"msctls_updown32",UDS_WRAP | 
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_HOTTRACK,78,142,9,13
    RTEXT           "&Height:",IDC_Setting_FixedHeightText,92,150,34,8
    EDITTEXT        IDC_Setting_FixedHeight,130,147,32,13,ES_NUMBER
    CONTROL         "",IDC_Setting_FixedHeightSpin,"msctls_updown32",
                    UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | 
                    UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_HOTTRACK,152,141,9,
                    13
    GROUPBOX        "Color",IDC_Setting_ColorFrame,7,175,238,39
    RTEXT           "Canvas:",IDC_Setting_BkColorText,17,192,34,8
    LTEXT           "",IDC_Setting_CanvasColor,55,190,32,13,SS_NOTIFY,
                    WS_EX_CLIENTEDGE
    RTEXT           "Border:",IDC_Setting_BorderColorText,92,192,34,8
    LTEXT           "",IDC_Setting_BorderColor,130,190,32,13,SS_NOTIFY,
                    WS_EX_CLIENTEDGE
    RTEXT           "Text:",IDC_Setting_TextColorText,167,192,34,8
    LTEXT           "",IDC_Setting_TextColor,205,190,32,13,SS_NOTIFY,
                    WS_EX_CLIENTEDGE
    DEFPUSHBUTTON   "OK",IDOK,44,228,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,102,228,50,14
    PUSHBUTTON      "&Default",IDC_Setting_Default,160,228,50,14
END


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

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_File_Open           "Open an image file."
    IDM_File_Reload         "Reload the opened file."
    IDM_File_Close          "Close the opened file."
    IDM_File_Save           "Save selection(s) as bitmap file."
    IDM_File_Twain          "Acquire image from TWAIN device."
    IDM_File_Wia            "Acquire image from WIA device."
    IDM_File_Exit           "Quit the application."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_File_Recent         "Open this file."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_Sel_DragSelect      "Use mouse drag mode to  generate selection."
    IDM_Sel_FixedSelect     "Use fixed rectangle mode to  generate selection."
    IDM_Sel_AutoSelect      "Generate selection automatically based on the picture content."
    IDM_Sel_SelectAll       "Select all selections."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_Sel_SelectInverse   "Inverse selection's state."
    IDM_Sel_Delete          "Delete selected selection(s)."
    IDM_Sel_DeleteAll       "Delete all selections."
    IDM_Sel_AdjustIndex     "Adjust selection order automatically."
    IDM_Sel_LoadTemplet     "Load selection templet from file."
    IDM_Sel_SaveTemplet     "Save all selections as selection templet to file."
    IDM_Sel_DefaultTemplet  "Save all selections as default templet (Default templet will be loaded automatically on file open)."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_Image_Undo          "Undo the last image operation."
    IDM_Image_Stretch       "Adjust image size."
    IDM_Image_FlipHorizon   "Flip image horizontally."
    IDM_Image_FlipVertical  "Flip image vertically."
    IDM_Image_Rotate90      "Rotate image widdershins in 90 degrees."
    IDM_Image_Rotate180     "Rotate image widdershins in 180 degrees."
    IDM_Image_Rotate270     "Rotate image widdershins in 270 degrees."
    IDM_Image_Rotate        "Rotate image in specified degrees."
    IDM_Image_Decolourize   "Decolourize image."
    IDM_Image_Negative      "Negative image."
    IDM_Image_Expose        "Expose image."
    IDM_Image_Emboss        "Emboss image."
    IDM_Image_Adjust        "Adjust image color."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_View_Toolbar        "Show or hide toolbar."
    IDM_View_StatusBar      "Show or hide status bar."
    IDM_View_AlwaysOnTop    "Put the main window at the top of all the other windows."
    IDM_View_MinToTray      "Minimize the main window to system tray."
    IDM_View_Setting        "Change program settings."
    IDM_View_ZoomIn         "Increase the scale at which the image is displayed."
    IDM_View_ZoomOut        "Reduce the scale at which the image is displayed."
    IDM_View_ZoomWindow     "Resize the image to the size of the window."
    IDM_View_ZoomActual     "Display the image in true size."
    IDM_View_Default        "Switch to built-in language."
    IDM_View_FirstLang      "Switch to this language."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_Help_Content        "Display help content."
    IDM_Help_Desktop        "Create shortcut on Desktop."
    IDM_Help_StartMenu      "Create shortcut on Start Menu."
    IDM_Help_ProgramMenu    "Create shortcut on Program Menu."
    IDM_Help_QuickLaunch    "Create shortcut on Quick Launch Toolbar."
    IDM_Help_About          "Display program information, version number and copyright."
END

#endif    // Chinese (P.R.C.) resources
/////////////////////////////////////////////////////////////////////////////


⌨️ 快捷键说明

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