mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
211 lines
6.4 KiB
211 lines
6.4 KiB
|
|
/*************************************************
|
|
* winime.rc *
|
|
* *
|
|
* Copyright (C) 1995-1999 Microsoft Inc. *
|
|
* *
|
|
*************************************************/
|
|
|
|
#include <winuser.h>
|
|
#include "winime.rcv"
|
|
#include "imeattr.h"
|
|
#include "imerc.h"
|
|
#include "ime.rc"
|
|
|
|
IDBM_CMODE_NATIVE BITMAP Chinese.bmp
|
|
|
|
IDIC_IME_ICON ICON IME.ICO
|
|
|
|
IDRC_VALIDCHAR RCDATA
|
|
BEGIN
|
|
// DWORD dwVersion;
|
|
0, 1,
|
|
|
|
// WORD fwProperties1;
|
|
#ifdef UNICODE
|
|
IMEPROP_UNICODE|
|
|
#endif
|
|
0x0000,
|
|
|
|
// WORD fwProperties2;
|
|
0x0000,
|
|
|
|
// WORD nMaxKey;
|
|
4,
|
|
|
|
// WORD nSeqCode;
|
|
0x10,
|
|
|
|
// WORD fChooseChar[6]; bit 15 -> 0xF, bit 0 -> 0x0
|
|
// when this bit == 1, this char can be entered in choosing candidates
|
|
// 20-2F /.-, +*)( '&%$ #"!
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 30-3F ?>=< ;:98 7654 3210
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 40-4F ONML KJIH GFED CBA@
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 50-5f _^]\ [ZYX WVUT SRQP
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 60-6F onml kjih gfed cba`
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 70-7F ~}| {zyx wvut srqp
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// WORD wReserved1[2];
|
|
0x0000, 0x0000,
|
|
|
|
// WORD fCompChar[6]; bit 15 -> 0xF, bit 0 -> 0x0
|
|
// when this bit == 1, this char can be entered in composing char
|
|
// 20-2F /.-, +*)( '&%$ #"!
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 30-3F ?>=< ;:98 7654 3210
|
|
0x03FF, // 0000 0011 1111 1111
|
|
|
|
// 40-4F ONML KJIH GFED CBA@
|
|
0x007E, // 0000 0000 0111 1110
|
|
|
|
// 50-5F _^]\ [ZYX WVUT SRQP
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 60-6F onml kjih gfed cba`
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// 70-7F ~}| {zyx wvut srqp
|
|
0x0000, // 0000 0000 0000 0000
|
|
|
|
// WORD wReserved1[2];
|
|
0x0000, 0x0000,
|
|
|
|
// WORD wCandPerPage;
|
|
0x0009,
|
|
|
|
// WORD wCandStart;
|
|
0x0001,
|
|
|
|
// WORD wCandRangeStart;
|
|
0x0001,
|
|
|
|
// WORD wReserved3[1];
|
|
0x0000,
|
|
|
|
// WORD wSeq2CompTbl[64];
|
|
// 0 1 2 3 4 5 6 7 8 9 A B C D E F - sequence code
|
|
#ifdef UNICODE
|
|
0x3000, 0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16,
|
|
0xFF17, 0xFF18, 0xFF19, 0xFF21, 0xFF22, 0xFF23, 0xFF24, 0xFF25,
|
|
#else
|
|
" 0123456789ABCDE", // comp char
|
|
// 0x40A1, 0xafA2, 0xb0A2, 0xb1A2, 0xb2a2, 0xb3A2, 0xb4A2, 0xb5A2,
|
|
// 0xb6A2, 0xb7A2, 0xb8A2, 0xcfA2, 0xd0A2, 0xd1A2, 0xd2A2, 0xd3A2,
|
|
#endif
|
|
|
|
// 101112131415161718191A1B1C1D1E1F
|
|
#ifdef UNICODE
|
|
0xFF26, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
|
|
0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
|
|
#else
|
|
"F ",
|
|
// 0xD4A2, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
|
|
// 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
|
|
#endif
|
|
|
|
// 202122232425262728292A2B2C2D2E2F
|
|
#ifdef UNICODE
|
|
0xFF26, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
|
|
0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
|
|
#else
|
|
" ",
|
|
// 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
|
|
// 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
|
|
#endif
|
|
|
|
// 303132333435363738393A3B3C3D3E3F
|
|
#ifdef UNICODE
|
|
0xFF26, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x3000,
|
|
0x3000, 0x3000, 0x3000, 0x3000, 0x3000, 0x20AC, 0x3000, 0x3000,
|
|
#else
|
|
" ",
|
|
// 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
|
|
// 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1, 0x40A1,
|
|
#endif
|
|
|
|
// WORD wChar2SeqTbl[0x42];
|
|
// ' ' ! " # $ % & ' - char code
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // sequence code
|
|
|
|
// ( ) * + , - . /
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
// 0 1 2 3 4 5 6 7
|
|
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
|
|
|
|
// 8 9 : ; < = > ?
|
|
0x09, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
// @ A B C D E F G
|
|
0x00, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x00,
|
|
|
|
// H I J K L M N O
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
// P Q R S T U V W
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
// X Y Z [ \ ] ^ _
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
// ` a
|
|
0x3D, 0x00,
|
|
END
|
|
|
|
IDRC_TABLEFILES RCDATA
|
|
BEGIN
|
|
#ifdef UNICODE
|
|
// szTblFile[4][16]
|
|
L"\0 34567890123456", L"\0 34567890123456",
|
|
L"\0 34567890123456", L"\0 34567890123456",
|
|
#else
|
|
// szTblFile[4][32]
|
|
"\0 345678901234567890123456789012", "\0 345678901234567890123456789012",
|
|
"\0 345678901234567890123456789012", "\0 345678901234567890123456789012",
|
|
#endif
|
|
END
|
|
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_IMENAME, "Internal Code"
|
|
IDS_IMEUICLASS, "WINIME"
|
|
IDS_IMECOMPCLASS, "CompWINIME"
|
|
IDS_IMECANDCLASS, "CandWINIME"
|
|
IDS_IMESTATUSCLASS, "StatusWINIME"
|
|
IDS_IMEOFFCARETCLASS, "OffWINIME"
|
|
IDS_IMECMENUCLASS, "CMenuWINIME"
|
|
END
|
|
|
|
// dialog to change configuration
|
|
IDDG_IME_CONFIG DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 32, 40, 200, 140
|
|
CAPTION "Change Configuration"
|
|
FONT 11, "PMingLiu",400,0,136
|
|
//#ifdef LATER // bklee
|
|
STYLE WS_CAPTION|WS_POPUP|WS_DLGFRAME|DS_3DLOOK|DS_CENTER|WS_SYSMENU
|
|
/*
|
|
#else
|
|
STYLE WS_CAPTION|WS_POPUP|WS_SYSMENU|DS_CENTER|DS_MODALFRAME
|
|
#endif
|
|
*/
|
|
BEGIN
|
|
LTEXT "Reverse conversion Input Method", -1, 10, 10, 180, 14
|
|
LISTBOX IDD_LAYOUT_LIST, 10, 24, 180, 48, WS_VSCROLL|WS_TABSTOP
|
|
CHECKBOX "Caret &Unrelated user interface", IDD_OFF_CARET_UI, 30, 80, 120, 15, BS_AUTOCHECKBOX|WS_TABSTOP
|
|
CHECKBOX "&Phrase prediction", IDD_PREDICT, 30, 100, 70, 15, BS_AUTOCHECKBOX|WS_TABSTOP
|
|
CHECKBOX "Show &Big5 Only Chars", IDD_BIG5ONLY, 110,80,100,15, BS_AUTOCHECKBOX|WS_TABSTOP
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 40, 120, 40, 15, WS_GROUP|WS_TABSTOP
|
|
DEFPUSHBUTTON "&OK", IDOK, 120, 120, 40, 15, WS_TABSTOP
|
|
END
|