UCONVERT.RC
资源名称:Uconvert.zip [点击查看]
上传用户:shijixite
上传日期:2007-01-03
资源大小:108k
文件大小:15k
源码类别:
输入法编程
开发平台:
Visual C++
- #include "windows.h"
- #include "uconvert.h"
- #include "install.h"
- uconvertIcon ICON uconvert.ico
- uconvertMenu MENU
- BEGIN
- POPUP "&File"
- BEGIN
- MENUITEM "&Open Source File ...", MID_OPEN
- MENUITEM "&Save Destination As ...", MID_SAVEAS
- MENUITEM SEPARATOR
- MENUITEM "E&xit", MID_EXIT
- END
- POPUP "&Edit"
- BEGIN
- MENUITEM "&Copy Destination to ClipboardaCtrl+C", MID_COPYDESTINATION
- MENUITEM "&Paste Clipboard to SourceaCtrl+V", MID_PASTESOURCE
- MENUITEM SEPARATOR
- MENUITEM "Clear &Source", MID_CLEARSOURCE
- MENUITEM "Clear &Destination", MID_CLEARDESTINATION
- END
- POPUP "&Conversion"
- BEGIN
- MENUITEM "&Convert Now aF3", MID_CONVERTNOW
- MENUITEM SEPARATOR
- MENUITEM "Change &Source Options....", MID_SOURCEOPT
- MENUITEM "Change &Destination Options....",MID_DESTINATIONOPT
- MENUITEM "Change Con&version Options....", MID_CONVERSIONOPT
- MENUITEM SEPARATOR
- MENUITEM "Swap &byte order in Source", MID_SWAPSOURCE
- MENUITEM "Swap byte &order in Destination", MID_SWAPDESTINATION
- MENUITEM SEPARATOR
- MENUITEM "&Install new conversion tables ...", MID_INSTALLTABLES
- END
- POPUP "&Help"
- BEGIN
- MENUITEM "&Contents", MID_HELP
- MENUITEM SEPARATOR
- MENUITEM "&About", MID_ABOUT
- END
- END
- /* Support Ctrl+C/V as well as <crtl>+<ins> and <shift>+<ins> */
- uconvertAccel ACCELERATORS
- BEGIN
- VK_INSERT, MID_COPYDESTINATION , CONTROL, VIRTKEY
- "^C", MID_COPYDESTINATION
- VK_INSERT, MID_PASTESOURCE, SHIFT , VIRTKEY
- "^V", MID_PASTESOURCE
- VK_F3, MID_CONVERTNOW, VIRTKEY
- VK_F1, MID_HELP, VIRTKEY
- "S", BID_VIEWSOURCE, ALT
- "s", BID_VIEWSOURCE, ALT
- "D", BID_VIEWDESTINATION, ALT
- "d", BID_VIEWDESTINATION, ALT
- END
- DataOptionsDlg DIALOG 5, 10, 160, 150
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Replace"
- FONT 8, "MS Shell Dlg"
- BEGIN
- GROUPBOX "", -1, 15, 6, 130, 78
- AUTORADIOBUTTON "&Unicode", DID_RBUNICODE, 24, 14, 51, 10
- AUTORADIOBUTTON "&Ansi CodePage", DID_RBANSICP, 24, 35, 75, 10
- AUTORADIOBUTTON "O&EM CodePage", DID_RBOEMCP, 24, 50, 75, 10
- AUTORADIOBUTTON "Othe&r CodePage:", DID_RBOTHERCP, 24, 65, 70, 10
- COMBOBOX DID_CODEPAGELIST, 96, 65, 40, 77, WS_VSCROLL | WS_TABSTOP | CBS_DROPDOWNLIST | CBS_SORT
- PUSHBUTTON "Cancel", IDCANCEL, 15, 120, 60, 18
- DEFPUSHBUTTON "OK", IDOK, 85, 120, 60, 18
- END
- ConversionOptionsDlg DIALOG 10, 20, 160, 277
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Conversion Options"
- FONT 8, "MS Shell Dlg"
- BEGIN
- GROUPBOX "MulitByteToWideChar", -1, 10, 18, 140, 66
- RADIOBUTTON "MB_PRECOMPOSED", DID_PRECOMPOSED, 25, 34, 100, 10
- RADIOBUTTON "MB_COMPOSITE", DID_COMPOSITE, 25, 48, 100, 10
- AUTOCHECKBOX "MB_USEGLYPHCHARS", DID_USEGLYPHCHARS, 25, 64, 100, 10
- GROUPBOX "WideCharToMultiByte", -1, 10, 104, 140, 124
- AUTOCHECKBOX "WC_COMPOSITECHECK", DID_COMPOSITECHECK, 25, 122, 100, 10
- AUTOCHECKBOX "WC_DISCARDNS", DID_DISCARDNS, 25, 142, 100, 10
- AUTOCHECKBOX "WC_SEPCHARS", DID_SEPCHARS, 25, 156, 100, 10
- AUTOCHECKBOX "WC_DEFAULTCHAR", DID_DEFAULTCHAR, 25, 170, 100, 10
- LTEXT "&Default Char:", -1, 39, 194, 46, 8
- EDITTEXT DID_EFDEFAULTCHAR, 88, 193, 21, 12, ES_AUTOHSCROLL
- AUTOCHECKBOX "Used Default Char", DID_USEDDEFAULTCHAR, 36, 209, 79, 10
- PUSHBUTTON "Cancel", IDCANCEL, 15, 250, 60, 18
- DEFPUSHBUTTON "OK", IDOK, 85, 250, 60, 18
- END
- ShowTextDlg DIALOG 5, 10, 280, 190
- STYLE WS_THICKFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "View Text"
- BEGIN
- LTEXT "-", DID_NAME, 55, 4, 300, 8
- LTEXT "-", DID_TYPE, 55, 12, 300, 8
- LTEXT "Warning: Font character set may not match text character set.", DID_FONT, 55, 20, 300, 8
- DEFPUSHBUTTON "OK", IDOK, 10, 10, 35, 14
- EDITTEXT DID_TEXT, 2, 34, 276, 135, ES_AUTOVSCROLL | ES_MULTILINE | ES_READONLY | WS_VSCROLL
- END
- InstallTableDlg DIALOG 5, 10, 234, 136
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Conversion Tables"
- FONT 8, "MS Shell Dlg"
- BEGIN
- LISTBOX DID_LISTBOX, 7, 26, 168, 107, LBS_SORT | WS_VSCROLL | WS_TABSTOP
- LTEXT "Installed Tables:", -1, 5, 9, 80, 8
- DEFPUSHBUTTON "OK", IDOK, 186, 25, 40, 14
- PUSHBUTTON "&Add...", BID_ADD, 186, 45, 40, 14
- PUSHBUTTON "&Remove...", -1, 186, 65, 40, 14, WS_DISABLED
- PUSHBUTTON "&Help...", -1, 186, 85, 40, 14, WS_DISABLED
- END
- STRINGTABLE
- BEGIN
- IDS_SOURCE, "Source:"
- IDS_DESTINATION, "Destination:"
- IDS_VIEW_SOURCE_BTN, "View &Source..."
- IDS_VIEW_DESTINATION_BTN, "View &Destination..."
- IDS_FILE_FILTER_SPEC1, "All Files (*.*)"
- IDS_FILE_FILTER_SPEC2, "Text Files (*.txt)"
- IDS_FILE_FILTER_SPEC3, "Unicode Files (*.utf)"
- IDS_CODE_PAGE, "CodePage: %d"
- IDS_OPEN_FILE_TITLE, "Open File"
- IDS_OPEN_FILE_FAILED, "open file failed."
- IDS_FILE_TOO_BIG, "File too big, > 2^32."
- IDS_READFILE_FAILED, "ReadFile() failed."
- IDS_SWAPPING_BYTE_ORDER, "Reverse byte order mark detected.n Automatically swapping byte order."
- IDS_NOTEXT_TO_SAVE, "No text to save"
- IDS_SAVE_AS_TITLE, "Save As"
- IDS_CREATEFILE_FAILED, "CreateFile() failed."
- IDS_WRITEFILE_FAILED, "WriteFile() failed."
- IDS_FROM_CLIPBOARD, "<from Clipboard>"
- IDS_LOAD_SOURCE_FILE, "Load Source File"
- IDS_SOURCE_TYPE_UNKNOWN, "Source type unknown.n Specify Source Options"
- IDS_DATA_NOT_SAVED, "Data not saved yet!"
- IDS_BYTES, "bytes: %d"
- IDS_BYTE_ORDER_REVERSED, "Byte Order Reversed."
- IDS_APP_WARNING, "Application Warning"
- IDS_INTERPRET_SOURCE_AS, "Interpret Source As..."
- IDS_CONVERT_DEST_TO, "Convert Destination To..."
- IDS_VIEW_SOURCE_TITLE, "View Source"
- IDS_VIEW_DEST_TITLE, "View Destination"
- IDS_FILE_FILTER_SPEC4, "Conversion Table (*.nls)"
- IDS_TABLE_FILE_TITLE, "Locate c_*.nls files from distribution media."
- IDS_INCORRECT_FILE_TYPE, "Incorrect file type.n Need c_*.nls."
- IDS_FILENAME_OVERFLOW, "File name overflow."
- IDS_LOGON_AS_ADMIN, "Log on as Administrator to complete this action."
- IDS_ACCESS_DENIED, "Access Denied, Insufficient Privilege"
- IDS_REGOPENKEYEX_FAILED, "RegOpenKeyEx() failed."
- IDS_FILE_ALREADY_EXISTS, "File already exists.n Replace existing?"
- IDS_FILE_CP_FAILED_AGAIN, "File copy failed again."
- IDS_FILE_CP_FAILED, "File copy failed."
- IDS_FILE_PARSE_FAILED, "Parsing file title failed."
- IDS_FIRSTCALL_FAILED, "System conversion API failed."
- END
- #ifdef JAPAN
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- LANGUAGE LANG_JAPANESE, SUBLANG_NEUTRAL
- uconvertMenu MENU
- BEGIN
- POPUP "抬操(&F)"
- BEGIN
- MENUITEM "曄姺尦抬操傪奐偔(&O)...", MID_OPEN
- MENUITEM "曄姺愭抬操偺曐懚(&S)...", MID_SAVEAS
- MENUITEM SEPARATOR
- MENUITEM "Uconvert 偺廔椆(&X)", MID_EXIT
- END
- POPUP "曇廤(&E)"
- BEGIN
- MENUITEM "曄姺愭抬操傪肛