?? hzinput.h
字號:
/*** $Id: hzinput.h,v 1.4 2004/01/12 03:33:57 weiym Exp $** ** hzinput.h: head file for GB2312 IME.**** Copyright (C) 2000 by Zheng Xiang (zx@minigui.org) ** Copyright (C) 2000, 2001, 2002, Wei Yongming** Copyright (C) 2003 Feynman Software.*/#ifndef __HZINPUT_H__#define __HZINPUT_H__#ifdef __cplusplusextern "C" {#endif /* __cplusplus */ #define INPUT_BGCOLOR 8 /* LightBlack */#define INPUT_FGCOLOR 15 /* LightWhite */#define INPUT_AREAY ((18 * 24)+10) #define MAX_INPUT_LENGTH 15#define MAGIC_NUMBER "CCEGB"#define CIN_ENAME_LENGTH 24#define CIN_CNAME_LENGTH 16#define MAX_PHRASE_LENGTH 20 #define SELECT_KEY_LENGTH 16 #define END_KEY_LENGTH 16#define MAX_SEL_LENGTH 58#define InputAreaX 16/* key of toggle input method */#define NR_INPUTMETHOD 10typedef struct { unsigned long key1; /* sizeof(ITEM=12) */ unsigned long key2; unsigned short ch; unsigned short frequency;} ITEM;typedef struct { char magic_number[sizeof(MAGIC_NUMBER)]; /* magic number */ char ename[CIN_ENAME_LENGTH]; /* ascii name */ char cname[CIN_CNAME_LENGTH]; /* prompt */ char selkey[SELECT_KEY_LENGTH]; /* select keys */ char last_full; /* last full code need a more SPACE? */ int TotalKey; /* number of keys needed */ int MaxPress; /* Max len of keystroke */ int MaxDupSel; /* how many keys used to select */ int TotalChar; /* Defined characters */ unsigned char KeyMap[128]; /* Map 128 chars to 64(6 bit) key index */ unsigned char KeyName[64]; /* Map 64 key to 128 chars */ unsigned short KeyIndex[64]; /* 64 key first index of TotalChar */ int PhraseNum; /* Total Phrase Number */ FILE *PhraseFile; /* *.tab.phr Phrase File */ FILE *AssocFile; /* *.tab.lx LianXiang File */ ITEM *item; /* item */} hz_input_table;typedef struct { short l, t, r, b;} hit_addr; void __mg_ime_writemsg (BYTE* buffer, int len, LPARAM lParam, BOOL bDByte);void __mg_ime_outchar (unsigned char ch, LPARAM lParam); #ifdef __cplusplus}#endif /* __cplusplus */#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -