jsIME.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:2k
- #include <tchar.h>
- #include <windows.h>
- #include "imm.h"
- #define UICLASSNAME "JSIMEwh"
- #ifndef JSIMEwh
- #define JSIMEwh
- //由于在不同的.CPP中定义是重新定义的
- //所以#ifndef JSIMEwh挡住重复定义。
- //由于.C的外部变量只要不指定为extern 就为本文件所用
- //所有不必用#ifndef判断重复定义。
- //////////////////////////////////////////
- //所有只要不定义变量在.cpp中不会引起问题。
- BOOL WINAPI DllMain (HINSTANCE,DWORD,LPVOID);
- BOOL IMERegisterClass( HANDLE);
- LRESULT WINAPI UIWndProc(HWND,UINT,WPARAM,LPARAM);
- BOOL MyIsWinNT() ;
- void SetTXT(char *ss);
- typedef struct _tagGENEMSG{
- UINT msg;
- WPARAM wParam;
- LPARAM lParam;
- } GENEMSG, NEAR *PGENEMSG, FAR *LPGENEMSG;
- typedef struct MEMHWN{
- HWND hwnd;
- int x;
- int y;
- } myHWNd, NEAR *PmyHWNd, FAR *LPmyHWNd;
- typedef struct _tagPRIVCONTEXT {// IME private data for each context
- int iImeState; // the composition state - input, choose, or
- BOOL fdwImeMsg; // what messages should be generated
- DWORD dwCompChar; // wParam of WM_IME_COMPOSITION
- DWORD fdwGcsFlag; // lParam for WM_IME_COMPOSITION
- // SK data
- // Symbol pair Flag
- UINT uSYHFlg;
- UINT uDYHFlg;
- UINT uDSMHCount;
- UINT uDSMHFlg;
- // input data
- BYTE bSeq[13]; // sequence code of input char
- DWORD fdwGB;
- HIMCC hRevCandList; // memory for reconsion result
- } PRIVCONTEXT;
- #define CS_FREEPY (CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS)
- #define GETLPRESULTSTR(lpcs) (LPTSTR)((LPBYTE)(lpcs) + (lpcs)->dwResultStrOffset)
- #endif //