4741
|
1 #ifndef IMM_HPP
|
|
2 #define IMM_HPP
|
|
3
|
|
4 #define WIN32_LEAN_AND_MEAN
|
|
5 #include <Windows.h>
|
|
6 #include <msctf.h>
|
|
7
|
|
8 class IMM
|
|
9 {
|
|
10 public:
|
|
11 IMM();
|
|
12 ~IMM();
|
|
13
|
|
14 void Initialize(HWND Window);
|
|
15 void Finalize();
|
|
16
|
|
17 LRESULT Handle_Message(HWND Window, UINT Message, WPARAM wParam, LPARAM lParam, bool &Ate);
|
|
18
|
|
19 private:
|
|
20 void Update_Input_Locale();
|
|
21
|
|
22 bool my_COM_Initialized;
|
|
23 ITfThreadMgr *my_Thread_Manager;
|
|
24 HWND my_Window;
|
|
25 HIMC my_Context;
|
|
26 HKL my_HKL;
|
|
27 bool my_Vertical_Candidates;
|
|
28 };
|
|
29
|
|
30 #endif
|