annotate EXCLUDE/GLTSF/include/TSF.hpp @ 4734:0c7c67d4e6ee

Added On_Char method to Window_Listener for WM_CHAR messages. Removed a lot of TSF code because part of it was wrong and part was too complicated. Added Clear method to clear the window. IME input should work in both windowed mode and fullscreen mode with these changes. I have tested on Windows XP SP3 and Windows 7 Ultimate in VirtualBox. When you type a character (with an IME or not), the console will show the code point as U+XXXX. You use Left Alt+Shift (or whatever you have it set to) to switch input languages as usual. Hit ESC to exit (or close the window in windowed mode). The program will pause before exiting so you can review the console output (press a key to exit).
author dewyatt
date Wed, 09 Jun 2010 00:03:54 -0400
parents e1307be6cb9e
children f51a9f01b508
rev   line source
4731
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
1 #ifndef TSF_HPP
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
2 #define TSF_HPP
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
3
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
4 #include <msctf.h>
4732
e1307be6cb9e Implementing base parts of TSF
dewyatt
parents: 4731
diff changeset
5 #include <atlbase.h>
4731
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
6
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
7 class TSF
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
8 {
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
9 public:
4734
0c7c67d4e6ee Added On_Char method to Window_Listener for WM_CHAR messages.
dewyatt
parents: 4732
diff changeset
10 static void Initialize();
0c7c67d4e6ee Added On_Char method to Window_Listener for WM_CHAR messages.
dewyatt
parents: 4732
diff changeset
11 static void Finalize();
4732
e1307be6cb9e Implementing base parts of TSF
dewyatt
parents: 4731
diff changeset
12
4731
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
13 private:
4734
0c7c67d4e6ee Added On_Char method to Window_Listener for WM_CHAR messages.
dewyatt
parents: 4732
diff changeset
14 TSF();
4731
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
15
4734
0c7c67d4e6ee Added On_Char method to Window_Listener for WM_CHAR messages.
dewyatt
parents: 4732
diff changeset
16 static bool COM_Initialized;
4732
e1307be6cb9e Implementing base parts of TSF
dewyatt
parents: 4731
diff changeset
17
4734
0c7c67d4e6ee Added On_Char method to Window_Listener for WM_CHAR messages.
dewyatt
parents: 4732
diff changeset
18 static CComPtr<ITfThreadMgr> Thread_Manager;
4731
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
19 };
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
20
bfc8ad7234b6 Adding some initial TSF code
dewyatt
parents:
diff changeset
21 #endif