Mydinput.h
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:6k
- #define KEYDOWN 1
- #define KEYUP 2
- #define BBESC 27
- #define BBENTER 128
- #define BBLCTRL 129
- #define BBLSHIFT 130
- #define BBRSHIFT 131
- #define BBMULTIPLY 132
- #define BBLALT 133
- #define BBSPACE 134
- #define BBF1 135
- #define BBF2 136
- #define BBF3 137
- #define BBF4 138
- #define BBF5 139
- #define BBF6 140
- #define BBF7 141
- #define BBF8 142
- #define BBF9 143
- #define BBF10 144
- #define BBNUMLOCK 145
- #define BBNUM7 146
- #define BBNUM8 147
- #define BBNUM9 148
- #define BBSUBTRACT 149
- #define BBNUM4 150
- #define BBNUM5 151
- #define BBNUM6 152
- #define BBADD 153
- #define BBNUM1 154
- #define BBNUM2 155
- #define BBNUM3 156
- #define BBNUM0 157
- #define BBDECIMAL 158
- #define BBF11 159
- #define BBF12 160
- #define BBNUMENTER 161
- #define BBRCTRL 162
- #define BBDIVIDE 163
- #define BBRALT 164
- #define BBPAUSE 165
- #define BBHOME 166
- #define BBUP 167
- #define BBPGUP 168
- #define BBLEFT 169
- #define BBRIGHT 170
- #define BBEND 171
- #define BBDOWN 172
- #define BBPGDN 173
- #define BBINS 174
- #define BBDEL 175
- #define BBBACK 176
- #define BBTAB 177
- typedef LPTSTR LPMYSTR;
- typedef TCHAR MYCHAR;
- #define MYTEXT(x) x
- #define Mylstrlen(x) lstrlen(x)
- #define Mylstrcpy(x, y) lstrcpy((x), (y))
- #define Mylstrcat(x, y) lstrcat((x), (y))
- #define Mylstrcmp(x, y) lstrcmp((x), (y))
- #define MyCharPrev(x, y) AnsiPrev((x), (y))
- #define MyCharNext(x) AnsiNext(x)
- #define MyImmGetCompositionString ImmGetCompositionString
- #ifdef __cplusplus
- extern "C" { /* Assume C declarations for C++ */
- #endif /* __cplusplus */
- extern BOOL bCanKeyChangeState;
- extern BOOL bCanMouseChangeState;
- extern CRITICAL_SECTION bInKeyGlobalCriticalSection1;
- extern signed long MouseXPos;
- extern signed long MouseYPos;
- extern unsigned short MLP,MRP,MLR,MRR;
- extern void HandleKeyDown(long nVirtKey,long lKeyData);
- extern void HandleKeyUp(long nVirtKey,long lKeyData);
- extern void FeedDBCSChar(long nVirtKey,long lKeyData);
- extern BOOL InitKeyboard(HWND DIhwnd, HINSTANCE DIhinst);
- extern void PickKeyState(void);
- extern void PickKeyBuffer(void);
- extern char GetKey(unsigned long Key1);
- extern void ClearKey(void);
- extern char PeekKey(unsigned short *Keyin);
- extern char ReadKey(unsigned short *Keyin);
- extern char WaitKey(unsigned short *Keyin);
- extern void QuitKeyboard(void);
- extern void HandleMouseDown(long fwKeys,long lKeyPos);
- extern void HandleMouseUp(long fwKeys,long lKeyPos);
- extern void HandleMouseMove(long lKeyPos);
- extern BOOL InitMouse(HWND DIhwnd, HINSTANCE DIhinst);
- extern void PickMouseState(void);
- extern void SetMouseRange(signed long XRange,signed long YRange);
- extern void SetMouse(signed long XPos,signed long YPos);
- extern void GetMouse(void);
- extern void QuitMouse(void);
- extern BOOL InitJoystick(HWND DIhwnd, HINSTANCE DIhinst);
- extern void PickJoystickState(void);
- extern void GetJoystick(void);
- extern void QuitJoystick(void);
- extern void DISyncAcquire(HWND BBhwnd, BOOL DIActive);
- extern HIMC hIMC;
- extern char IsActiveComposition;
- extern char IsCompositionFinish;
- extern char *lpIMEDescription;
- extern char *lpHalfFullMode;
- extern COMPOSITIONFORM CPF;
- extern LPCANDIDATELIST lpCandList;
- extern DWORD dwCursorPos;
- extern DWORD dwCompStrLen;
- extern DWORD dwCompAttrLen;
- extern DWORD dwCompClsLen;
- extern DWORD dwCompReadStrLen;
- extern DWORD dwCompReadAttrLen;
- extern DWORD dwCompReadClsLen;
- extern DWORD dwResultStrLen;
- extern DWORD dwResultClsLen;
- extern DWORD dwResultReadStrLen;
- extern DWORD dwResultReadClsLen;
- extern MYCHAR szCompStr[512];
- extern BYTE bCompAttr[512];
- extern DWORD dwCompCls[128];
- extern MYCHAR szCompReadStr[512];
- extern BYTE bCompReadAttr[512];
- extern DWORD dwCompReadCls[128];
- extern MYCHAR szResultStr[512];
- extern DWORD dwResultCls[128];
- extern MYCHAR szResultReadStr[512];
- extern DWORD dwResultReadCls[128];
- extern MYCHAR szPaintResult[512];
- extern MYCHAR szPaintResultRead[512];
- extern void InitIME(HWND hwnd);
- extern void EnableIME(HWND hwnd);
- extern void DisableIME(HWND hwnd);
- extern void QuitIME(HWND hwnd);
- extern void SetIMEPosition(long XPos,long YPos);
- extern LRESULT HandleLangChange(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleSetConversionMode(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleStartComposition(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleEndComposition(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleComposition(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleGuideLine(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleOpenCandidate(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleChangeCandidate(HWND hWnd,WPARAM wParam,LPARAM lParam);
- extern LRESULT HandleCloseCandidate(HWND hWnd,WPARAM wParam,LPARAM lParam);
- #ifdef __cplusplus
- }
- #endif /* __cplusplus */