1 | ' api_imm.sbp
|
---|
2 |
|
---|
3 | #ifndef _IMM_
|
---|
4 | #define _IMM_
|
---|
5 |
|
---|
6 | #ifndef _IMM_SDK_DEFINED_
|
---|
7 | #define _IMM_SDK_DEFINED_
|
---|
8 |
|
---|
9 | Type _System_DeclareHandle_HIMC:unused As DWord:End Type
|
---|
10 | TypeDef HIMC = *_System_DeclareHandle_HIMC
|
---|
11 | Type _System_DeclareHandle_HIMCC:unused As DWord:End Type
|
---|
12 | TypeDef HIMCC = *_System_DeclareHandle_HIMCC
|
---|
13 |
|
---|
14 | Type COMPOSITIONFORM
|
---|
15 | dwStyle As DWord
|
---|
16 | ptCurrentPos As POINTAPI
|
---|
17 | rcArea As RECT
|
---|
18 | End Type
|
---|
19 | TypeDef PCOMPOSITIONFORM = *COMPOSITIONFORM
|
---|
20 | TypeDef NPCOMPOSITIONFORM = *COMPOSITIONFORM
|
---|
21 | TypeDef LPCOMPOSITIONFORM = *COMPOSITIONFORM
|
---|
22 |
|
---|
23 | Type CANDIDATEFORM
|
---|
24 | dwIndex As DWord
|
---|
25 | dwStyle As DWord
|
---|
26 | ptCurrentPos As POINTAPI
|
---|
27 | rcArea As RECT
|
---|
28 | End Type
|
---|
29 | TypeDef PCANDIDATEFORM = *CANDIDATEFORM
|
---|
30 | TypeDef NPCANDIDATEFORM = *CANDIDATEFORM
|
---|
31 | TypeDef LPCANDIDATEFORM = *CANDIDATEFORM
|
---|
32 |
|
---|
33 | Type CANDIDATELIST
|
---|
34 | dwSize As DWord
|
---|
35 | dwStyle As DWord
|
---|
36 | dwCount As DWord
|
---|
37 | dwSelection As DWord
|
---|
38 | dwPageStart As DWord
|
---|
39 | dwPageSize As DWord
|
---|
40 | dwOffset[ELM(1)] As DWord
|
---|
41 | End Type
|
---|
42 | TypeDef PCANDIDATELIST = *CANDIDATELIST
|
---|
43 | TypeDef NPCANDIDATELIST = *CANDIDATELIST
|
---|
44 | TypeDef LPCANDIDATELIST = *CANDIDATELIST
|
---|
45 |
|
---|
46 | Type REGISTERWORDA
|
---|
47 | lpReading As LPSTR
|
---|
48 | lpWord As LPSTR
|
---|
49 | End Type
|
---|
50 | TypeDef PREGISTERWORDA = *REGISTERWORDA
|
---|
51 | TypeDef NPREGISTERWORDA = *REGISTERWORDA
|
---|
52 | TypeDef LPREGISTERWORDA = *REGISTERWORDA
|
---|
53 |
|
---|
54 | Type REGISTERWORDW
|
---|
55 | lpReading As LPWSTR
|
---|
56 | lpWord As LPWSTR
|
---|
57 | End Type
|
---|
58 | TypeDef PREGISTERWORDW = *REGISTERWORDW
|
---|
59 | TypeDef NPREGISTERWORDW = *REGISTERWORDW
|
---|
60 | TypeDef LPREGISTERWORDW = *REGISTERWORDW
|
---|
61 |
|
---|
62 | #ifdef UNICODE
|
---|
63 | TypeDef REGISTERWORD = REGISTERWORDW
|
---|
64 | TypeDef PREGISTERWORD = PREGISTERWORDW
|
---|
65 | TypeDef NPREGISTERWORD = NPREGISTERWORDW
|
---|
66 | TypeDef LPREGISTERWORD = LPREGISTERWORDW
|
---|
67 | #else
|
---|
68 | TypeDef REGISTERWORD = REGISTERWORDA
|
---|
69 | TypeDef PREGISTERWORD = PREGISTERWORDA
|
---|
70 | TypeDef NPREGISTERWORD = NPREGISTERWORDA
|
---|
71 | TypeDef LPREGISTERWORD = LPREGISTERWORDA
|
---|
72 | #endif
|
---|
73 |
|
---|
74 | Type RECONVERTSTRING
|
---|
75 | dwSize As DWord
|
---|
76 | dwVersion As DWord
|
---|
77 | dwStrLen As DWord
|
---|
78 | dwStrOffset As DWord
|
---|
79 | dwCompStrLen As DWord
|
---|
80 | dwCompStrOffset As DWord
|
---|
81 | dwTargetStrLen As DWord
|
---|
82 | dwTargetStrOffset As DWord
|
---|
83 | End Type
|
---|
84 | TypeDef PRECONVERTSTRING = *RECONVERTSTRING
|
---|
85 | TypeDef NPRECONVERTSTRING = *RECONVERTSTRING
|
---|
86 | TypeDef LPRECONVERTSTRING = *RECONVERTSTRING
|
---|
87 |
|
---|
88 | Const STYLE_DESCRIPTION_SIZE = 32
|
---|
89 |
|
---|
90 | Type STYLEBUFA
|
---|
91 | dwStyle As DWord
|
---|
92 | szDescription[ELM(STYLE_DESCRIPTION_SIZE)] As CHAR
|
---|
93 | End Type
|
---|
94 | TypeDef PSTYLEBUFA = *STYLEBUFA
|
---|
95 | TypeDef NPSTYLEBUFA = *STYLEBUFA
|
---|
96 | TypeDef LPSTYLEBUFA = *STYLEBUFA
|
---|
97 |
|
---|
98 | Type STYLEBUFW
|
---|
99 | dwStyle As DWord
|
---|
100 | szDescription[ELM(STYLE_DESCRIPTION_SIZE)] As WCHAR
|
---|
101 | End Type
|
---|
102 | TypeDef PSTYLEBUFW = *STYLEBUFW
|
---|
103 | TypeDef NPSTYLEBUFW = *STYLEBUFW
|
---|
104 | TypeDef LPSTYLEBUFW = *STYLEBUFW
|
---|
105 |
|
---|
106 | #ifdef UNICODE
|
---|
107 | TypeDef STYLEBUF = STYLEBUFW
|
---|
108 | TypeDef PSTYLEBUF = PSTYLEBUFW
|
---|
109 | TypeDef NPSTYLEBUF = NPSTYLEBUFW
|
---|
110 | TypeDef LPSTYLEBUF = LPSTYLEBUFW
|
---|
111 | #else
|
---|
112 | TypeDef STYLEBUF = STYLEBUFA
|
---|
113 | TypeDef PSTYLEBUF = PSTYLEBUFA
|
---|
114 | TypeDef NPSTYLEBUF = NPSTYLEBUFA
|
---|
115 | TypeDef LPSTYLEBUF = LPSTYLEBUFA
|
---|
116 | #endif
|
---|
117 |
|
---|
118 | '#if (WINVER >= 0x040A)
|
---|
119 |
|
---|
120 | Const IMEMENUITEM_STRING_SIZE = 80
|
---|
121 |
|
---|
122 | Type IMEMENUITEMINFOA
|
---|
123 | cbSize As DWord
|
---|
124 | fType As DWord
|
---|
125 | fState As DWord
|
---|
126 | wID As DWord
|
---|
127 | hbmpChecked As HBITMAP
|
---|
128 | hbmpUnchecked As HBITMAP
|
---|
129 | dwItemData As DWord
|
---|
130 | szString[ELM(IMEMENUITEM_STRING_SIZE)] As CHAR
|
---|
131 | hbmpItem As HBITMAP
|
---|
132 | End Type
|
---|
133 | TypeDef PIMEMENUITEMINFOA = *IMEMENUITEMINFOA
|
---|
134 | TypeDef NPIMEMENUITEMINFOA = *IMEMENUITEMINFOA
|
---|
135 | TypeDef LPIMEMENUITEMINFOA = *IMEMENUITEMINFOA
|
---|
136 |
|
---|
137 | Type IMEMENUITEMINFOW
|
---|
138 | cbSize As DWord
|
---|
139 | fType As DWord
|
---|
140 | fState As DWord
|
---|
141 | wID As DWord
|
---|
142 | hbmpChecked As HBITMAP
|
---|
143 | hbmpUnchecked As HBITMAP
|
---|
144 | dwItemData As DWord
|
---|
145 | szString[ELM(IMEMENUITEM_STRING_SIZE)] As WCHAR
|
---|
146 | hbmpItem As HBITMAP
|
---|
147 | End Type
|
---|
148 | TypeDef PIMEMENUITEMINFOW = *IMEMENUITEMINFOW
|
---|
149 | TypeDef NPIMEMENUITEMINFOW = *IMEMENUITEMINFOW
|
---|
150 | TypeDef LPIMEMENUITEMINFOW = *IMEMENUITEMINFOW
|
---|
151 |
|
---|
152 | #ifdef UNICODE
|
---|
153 | TypeDef IMEMENUITEMINFO = IMEMENUITEMINFOW
|
---|
154 | TypeDef PIMEMENUITEMINFO = PIMEMENUITEMINFOW
|
---|
155 | TypeDef NPIMEMENUITEMINFO = NPIMEMENUITEMINFOW
|
---|
156 | TypeDef LPIMEMENUITEMINFO = LPIMEMENUITEMINFOW
|
---|
157 | #else
|
---|
158 | TypeDef IMEMENUITEMINFO = IMEMENUITEMINFOA
|
---|
159 | TypeDef PIMEMENUITEMINFO = PIMEMENUITEMINFOA
|
---|
160 | TypeDef NPIMEMENUITEMINFO = NPIMEMENUITEMINFOA
|
---|
161 | TypeDef LPIMEMENUITEMINFO = LPIMEMENUITEMINFOA
|
---|
162 | #endif
|
---|
163 |
|
---|
164 | Type IMECHARPOSITION
|
---|
165 | dwSize As DWord
|
---|
166 | dwCharPos As DWord
|
---|
167 | pt As POINTAPI
|
---|
168 | cLineHeight As DWord
|
---|
169 | rcDocument As RECT
|
---|
170 | End Type
|
---|
171 | TypeDef PIMECHARPOSITION = *IMECHARPOSITION
|
---|
172 | TypeDef NPIMECHARPOSITION = *IMECHARPOSITION
|
---|
173 | TypeDef LPIMECHARPOSITION = *IMECHARPOSITION
|
---|
174 |
|
---|
175 | TypeDef IMCENUMPROC = *Function(himc As HIMC, lp As LPARAM) As BOOL
|
---|
176 |
|
---|
177 | 'prototype of IMM API
|
---|
178 |
|
---|
179 | Declare Function ImmInstallIMEA Lib "imm32" (lpszIMEFileName As LPCSTR, lpszLayoutText As LPCSTR) As HKL
|
---|
180 | Declare Function ImmInstallIMEW Lib "imm32" (lpszIMEFileName As LPCWSTR, lpszLayoutText As LPCWSTR) As HKL
|
---|
181 | #ifdef UNICODE
|
---|
182 | Declare Function ImmInstallIME Lib "imm32" Alias "ImmInstallIMEW" (lpszIMEFileName As LPCWSTR, lpszLayoutText As LPCWSTR) As HKL
|
---|
183 | #else
|
---|
184 | Declare Function ImmInstallIME Lib "imm32" Alias "ImmInstallIMEA" (lpszIMEFileName As LPCSTR, lpszLayoutText As LPCSTR) As HKL
|
---|
185 | #endif
|
---|
186 |
|
---|
187 | Declare Function ImmGetDefaultIMEWnd Lib "imm32" (hwnd As HWND) As HWND
|
---|
188 |
|
---|
189 | Declare Function ImmGetDescriptionA Lib "imm32" (hkl As HKL, lpszDescription As LPSTR, uBufLen As DWord) As DWord
|
---|
190 | Declare Function ImmGetDescriptionW Lib "imm32" (hkl As HKL, lpszDescription As LPWSTR, uBufLen As DWord) As DWord
|
---|
191 | #ifdef UNICODE
|
---|
192 | Declare Function ImmGetDescription Lib "imm32" Alias "ImmGetDescriptionW" (hkl As HKL, lpszDescription As LPWSTR, uBufLen As DWord) As DWord
|
---|
193 | #else
|
---|
194 | Declare Function ImmGetDescription Lib "imm32" Alias "ImmGetDescriptionA" (hkl As HKL, lpszDescription As LPSTR, uBufLen As DWord) As DWord
|
---|
195 | #endif
|
---|
196 |
|
---|
197 | Declare Function ImmGetIMEFileNameA Lib "imm32" (lpszFileName As LPSTR, uBufLen As DWord) As DWord
|
---|
198 | Declare Function ImmGetIMEFileNameW Lib "imm32" (lpszFileName As LPWSTR, uBufLen As DWord) As DWord
|
---|
199 | #ifdef UNICODE
|
---|
200 | Declare Function ImmGetIMEFileName Lib "imm32" Alias "ImmGetIMEFileNameW" (lpszFileName As LPWSTR, uBufLen As DWord) As DWord
|
---|
201 | #else
|
---|
202 | Declare Function ImmGetIMEFileName Lib "imm32" Alias "ImmGetIMEFileNameA" (lpszFileName As LPSTR, uBufLen As DWord) As DWord
|
---|
203 | #endif
|
---|
204 |
|
---|
205 | Declare Function ImmGetProperty Lib "imm32" (hkl As HKL, fdwIndex As DWord) As DWord
|
---|
206 | Declare Function ImmIsIME Lib "imm32" (hkl As HKL) As BOOL
|
---|
207 | Declare Function ImmSimulateHotKey Lib "imm32" (hwnd As HWND, dwHotKeyID As DWord) As BOOL
|
---|
208 | Declare Function ImmCreateContext Lib "imm32" () As HIMC
|
---|
209 | Declare Function ImmDestroyContext Lib "imm32" (himc As HIMC) As BOOL
|
---|
210 | Declare Function ImmGetContext Lib "imm32" (hwnd As HWND) As HIMC
|
---|
211 | Declare Function ImmReleaseContext Lib "imm32" (hwnd As HWND, himc As HIMC) As BOOL
|
---|
212 | Declare Function ImmAssociateContext Lib "imm32" (hwnd As HWND, himc As HIMC) As HIMC
|
---|
213 | Declare Function ImmAssociateContextEx Lib "imm32" (hwnd As HWND, himc As HIMC, dwFlags As DWord) As HIMC
|
---|
214 |
|
---|
215 | Declare Function ImmGetCompositionStringA Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
216 | Declare Function ImmGetCompositionStringW Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
217 | #ifdef UNICODE
|
---|
218 | Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringW" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
219 | #else
|
---|
220 | Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
221 | #endif
|
---|
222 |
|
---|
223 | Declare Function ImmSetCompositionStringA Lib "imm32" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord ) As BOOL
|
---|
224 | Declare Function ImmSetCompositionStringW Lib "imm32" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord ) As BOOL
|
---|
225 | #ifdef UNICODE
|
---|
226 | Declare Function ImmSetCompositionString Lib "imm32" Alias "ImmSetCompositionStringW" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord ) As BOOL
|
---|
227 | #else
|
---|
228 | Declare Function ImmSetCompositionString Lib "imm32" Alias "ImmSetCompositionStringA" (himc As HIMC, dwIndex As DWord, lpComp As VoidPtr, dwCompLen As DWord, lpRead As VoidPtr, dwReadLen As DWord ) As BOOL
|
---|
229 | #endif
|
---|
230 |
|
---|
231 | Declare Function ImmGetCandidateListCountA Lib "imm32" (himc As HIMC, ByRef dwListCount As DWord) As DWord
|
---|
232 | Declare Function ImmGetCandidateListCountW Lib "imm32" (himc As HIMC, ByRef dwListCount As DWord) As DWord
|
---|
233 | #ifdef UNICODE
|
---|
234 | Declare Function ImmGetCandidateListCount Lib "imm32" Alias "ImmGetCandidateListCountW" (himc As HIMC, ByRef dwListCount As DWord) As DWord
|
---|
235 | #else
|
---|
236 | Declare Function ImmGetCandidateListCount Lib "imm32" Alias "ImmGetCandidateListCountA" (himc As HIMC, ByRef dwListCount As DWord) As DWord
|
---|
237 | #endif
|
---|
238 |
|
---|
239 | Declare Function ImmGetCandidateListA Lib "imm32" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord
|
---|
240 | Declare Function ImmGetCandidateListW Lib "imm32" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord
|
---|
241 | #ifdef UNICODE
|
---|
242 | Declare Function ImmGetCandidateList Lib "imm32" Alias "ImmGetCandidateListW" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord
|
---|
243 | #else
|
---|
244 | Declare Function ImmGetCandidateList Lib "imm32" Alias "ImmGetCandidateListA" (himc As HIMC, dwIndex As DWord, lpCandList As LPCANDIDATELIST, dwBufLen As DWord) As DWord
|
---|
245 | #endif
|
---|
246 |
|
---|
247 | Declare Function ImmGetGuideLineA(himc As HIMC, dwIndex As DWord, lpBuf As LPSTR, dwBufLen As DWord) As DWord
|
---|
248 | Declare Function ImmGetGuideLineW(himc As HIMC, dwIndex As DWord, lpBuf As LPWSTR, dwBufLen As DWord) As DWord
|
---|
249 | #ifdef UNICODE
|
---|
250 | Declare Function ImmGetGuideLine Alias "ImmGetGuideLineW" (himc As HIMC, dwIndex As DWord, lpBuf As LPWSTR, dwBufLen As DWord) As DWord
|
---|
251 | #else
|
---|
252 | Declare Function ImmGetGuideLine Alias "ImmGetGuideLineA" (himc As HIMC, dwIndex As DWord, lpBuf As LPSTR, dwBufLen As DWord) As DWord
|
---|
253 | #endif
|
---|
254 |
|
---|
255 | Declare Function ImmGetConversionStatus(himc As HIMC, ByRef fdwConversion As DWord, ByRef fdwSentence As DWord) As BOOL
|
---|
256 | Declare Function ImmSetConversionStatus(himc As HIMC, fdwConversion As DWord, fdwSentence As DWord) As BOOL
|
---|
257 | Declare Function ImmGetOpenStatus(himc As HIMC) As BOOL
|
---|
258 | Declare Function ImmSetOpenStatus(himc As HIMC, fOpen As BOOL) As BOOL
|
---|
259 |
|
---|
260 | #ifdef _INC_GDI '_WINGDI_
|
---|
261 | #ifndef NOGID
|
---|
262 | Declare Function ImmGetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As BOOL
|
---|
263 | Declare Function ImmGetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As BOOL
|
---|
264 | #ifdef UNICODE
|
---|
265 | Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmGetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
266 | #else
|
---|
267 | Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmGetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
268 | #endif
|
---|
269 |
|
---|
270 | Declare Function ImmSetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As Long
|
---|
271 | Declare Function ImmSetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As Long
|
---|
272 | #ifdef UNICODE
|
---|
273 | Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As Long
|
---|
274 | #else
|
---|
275 | Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As Long
|
---|
276 | #endif
|
---|
277 | #endif 'NOGID
|
---|
278 | #endif '_INC_GDI
|
---|
279 |
|
---|
280 | Declare Function ImmConfigureIMEA Lib "imm32" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL
|
---|
281 | Declare Function ImmConfigureIMEW Lib "imm32" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL
|
---|
282 | #ifdef UNICODE
|
---|
283 | Declare Function ImmConfigureIME Lib "imm32" Alias "ImmConfigureIMEW" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL
|
---|
284 | #else
|
---|
285 | Declare Function ImmConfigureIME Lib "imm32" Alias "ImmConfigureIMEA" (hkl As HKL, hwnd As HWND, dwMode As DWord, lpData As VoidPtr) As BOOL
|
---|
286 | #endif
|
---|
287 |
|
---|
288 | Declare Function ImmEscapeA Lib "imm32" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL
|
---|
289 | Declare Function ImmEscapeW Lib "imm32" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL
|
---|
290 | #ifdef UNICODE
|
---|
291 | Declare Function ImmEscape Lib "imm32" Alias "ImmEscapeW" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL
|
---|
292 | #else
|
---|
293 | Declare Function ImmEscape Lib "imm32" Alias "ImmEscapeA" (hkl As HKL, himc As HIMC, uEscape As DWord, lpData As VoidPtr) As BOOL
|
---|
294 | #endif
|
---|
295 |
|
---|
296 | Declare Function ImmGetConversionListA Lib "imm32" (hkl As HKL, lpSrc As LPCSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord
|
---|
297 | Declare Function ImmGetConversionListW Lib "imm32" (hkl As HKL, lpSrc As LPCWSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord
|
---|
298 | #ifdef UNICODE
|
---|
299 | Declare Function ImmGetConversionList Lib "imm32" Alias "ImmGetConversionListW" (hkl As HKL, lpSrc As LPCWSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord
|
---|
300 | #else
|
---|
301 | Declare Function ImmGetConversionList Lib "imm32" Alias "ImmGetConversionListA" (hkl As HKL, lpSrc As LPCSTR, lpDst As LPCANDIDATELIST, dwBufLen As DWord, uFlag As DWord) As DWord
|
---|
302 | #endif
|
---|
303 |
|
---|
304 | Declare Function ImmNotifyIME Lib "imm32" (himc As HIMC, dwAction As DWord, dwIndex As DWord, dwValue As DWord) As BOOL
|
---|
305 |
|
---|
306 | Declare Function ImmGetStatusWindowPos Lib "imm32" (himc As HIMC, ByRef ptPos As POINTAPI) As BOOL
|
---|
307 | Declare Function ImmSetStatusWindowPos Lib "imm32" (himc As HIMC, ByRef ptPos As POINTAPI) As BOOL
|
---|
308 | Declare Function ImmGetCompositionWindow Lib "imm32" (himc As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL
|
---|
309 | Declare Function ImmSetCompositionWindow Lib "imm32" (himc As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL
|
---|
310 | Declare Function ImmGetCandidateWindow Lib "imm32" (himc As HIMC, ByRef Candidate As CANDIDATEFORM) As BOOL
|
---|
311 | Declare Function ImmSetCandidateWindow Lib "imm32" (himc As HIMC, ByRef Candidate As CANDIDATEFORM) As BOOL
|
---|
312 |
|
---|
313 | Declare Function ImmIsUIMessageA Lib "imm32" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL
|
---|
314 | Declare Function ImmIsUIMessageW Lib "imm32" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL
|
---|
315 | #ifdef UNICODE
|
---|
316 | Declare Function ImmIsUIMessage Lib "imm32" Alias "ImmIsUIMessageW" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL
|
---|
317 | #else
|
---|
318 | Declare Function ImmIsUIMessage Lib "imm32" Alias "ImmIsUIMessageA" (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As BOOL
|
---|
319 | #endif
|
---|
320 |
|
---|
321 | TypeDef REGISTERWORDENUMPROCA = *Function(lpszReading As LPCSTR, dwStyle As DWord, lpszString As LPCSTR, lpData As VoidPtr) As Long
|
---|
322 | TypeDef REGISTERWORDENUMPROCW = *Function(lpszReading As LPCWSTR, dwStyle As DWord, lpszString As LPCWSTR, lpData As VoidPtr) As Long
|
---|
323 | #ifdef UNICODE
|
---|
324 | TypeDef REGISTERWORDENUMPROC = REGISTERWORDENUMPROCW
|
---|
325 | #else
|
---|
326 | TypeDef REGISTERWORDENUMPROC = REGISTERWORDENUMPROCA
|
---|
327 | #endif
|
---|
328 |
|
---|
329 | Declare Function ImmRegisterWordA Lib "imm32" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR) As BOOL
|
---|
330 | Declare Function ImmRegisterWordW Lib "imm32" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR) As BOOL
|
---|
331 | #ifdef UNICODE
|
---|
332 | Declare Function ImmRegisterWord Lib "imm32" Alias "ImmRegisterWordW" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR) As BOOL
|
---|
333 | #else
|
---|
334 | Declare Function ImmRegisterWord Lib "imm32" Alias "ImmRegisterWordA" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR) As BOOL
|
---|
335 | #endif
|
---|
336 |
|
---|
337 | Declare Function ImmUnregisterWordA Lib "imm32" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszUnregister As LPCSTR) As BOOL
|
---|
338 | Declare Function ImmUnregisterWordW Lib "imm32" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszUnregister As LPCWSTR) As BOOL
|
---|
339 | #ifdef UNICODE
|
---|
340 | Declare Function ImmUnregisterWord Lib "imm32" Alias "ImmUnregisterWordW" (hkl As HKL, lpszReading As LPCWSTR, dwStyle As DWord, lpszUnregister As LPCWSTR) As BOOL
|
---|
341 | #else
|
---|
342 | Declare Function ImmUnregisterWord Lib "imm32" Alias "ImmUnregisterWordA" (hkl As HKL, lpszReading As LPCSTR, dwStyle As DWord, lpszUnregister As LPCSTR) As BOOL
|
---|
343 | #endif
|
---|
344 |
|
---|
345 | Declare Function ImmGetRegisterWordStyleA Lib "imm32" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFA) As DWord
|
---|
346 | Declare Function ImmGetRegisterWordStyleW Lib "imm32" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFW) As DWord
|
---|
347 | #ifdef UNICODE
|
---|
348 | Declare Function ImmGetRegisterWordStyle Lib "imm32" Alias "ImmGetRegisterWordStyleW" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFW) As DWord
|
---|
349 | #else
|
---|
350 | Declare Function ImmGetRegisterWordStyle Lib "imm32" Alias "ImmGetRegisterWordStyleA" (hkl As HKL, nItem As DWord, lpStyleBuf As LPSTYLEBUFA) As DWord
|
---|
351 | #endif
|
---|
352 |
|
---|
353 | Declare Function ImmEnumRegisterWordA Lib "imm32" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCA, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR, lpData As VoidPtr) As DWord
|
---|
354 | Declare Function ImmEnumRegisterWordW Lib "imm32" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCW, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR, lpData As VoidPtr) As DWord
|
---|
355 | #ifdef UNICODE
|
---|
356 | Declare Function ImmEnumRegisterWord Lib "imm32" Alias "ImmEnumRegisterWordW" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCW, lpszReading As LPCWSTR, dwStyle As DWord, lpszRegister As LPCWSTR, lpData As VoidPtr) As DWord
|
---|
357 | #else
|
---|
358 | Declare Function ImmEnumRegisterWord Lib "imm32" Alias "ImmEnumRegisterWordA" (hkl As HKL, lpfnEnumProc As REGISTERWORDENUMPROCA, lpszReading As LPCSTR, dwStyle As DWord, lpszRegister As LPCSTR, lpData As VoidPtr) As DWord
|
---|
359 | #endif
|
---|
360 |
|
---|
361 | Declare Function ImmDisableIME Lib "imm32" (idThread As DWord) As BOOL
|
---|
362 | Declare Function ImmEnumInputContext Lib "imm32" (idThread As DWord, lpfn As IMCENUMPROC, lParam As LPARAM) As BOOL
|
---|
363 | Declare Function ImmGetImeMenuItemsA Lib "imm32" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOA, lpImeMenu As LPIMEMENUITEMINFOA, dwSoze As DWord) As DWord
|
---|
364 | Declare Function ImmGetImeMenuItemsW Lib "imm32" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOW, lpImeMenu As LPIMEMENUITEMINFOW, dwSoze As DWord) As DWord
|
---|
365 | #ifdef UNICODE
|
---|
366 | Declare Function ImmGetImeMenuItems Lib "imm32" Alias "ImmGetImeMenuItemsW" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOW, lpImeMenu As LPIMEMENUITEMINFOW, dwSoze As DWord) As DWord
|
---|
367 | #else
|
---|
368 | Declare Function ImmGetImeMenuItems Lib "imm32" Alias "ImmGetImeMenuItemsA" (himc As HIMC, dwFlags As DWord, dwType As DWord, ByRef ImeParentMenu As IMEMENUITEMINFOA, lpImeMenu As LPIMEMENUITEMINFOA, dwSoze As DWord) As DWord
|
---|
369 | #endif
|
---|
370 | Declare Function ImmDisableTextFrameService(idThread As DWord) As BOOL
|
---|
371 |
|
---|
372 | ' wParam for WM_IME_CONTROL
|
---|
373 | Const IMC_GETCANDIDATEPOS = &h0007
|
---|
374 | Const IMC_SETCANDIDATEPOS = &h0008
|
---|
375 | Const IMC_GETCOMPOSITIONFONT = &h0009
|
---|
376 | Const IMC_SETCOMPOSITIONFONT = &h000A
|
---|
377 | Const IMC_GETCOMPOSITIONWINDOW = &h000B
|
---|
378 | Const IMC_SETCOMPOSITIONWINDOW = &h000C
|
---|
379 | Const IMC_GETSTATUSWINDOWPOS = &h000F
|
---|
380 | Const IMC_SETSTATUSWINDOWPOS = &h0010
|
---|
381 | Const IMC_CLOSESTATUSWINDOW = &h0021
|
---|
382 | Const IMC_OPENSTATUSWINDOW = &h0022
|
---|
383 |
|
---|
384 |
|
---|
385 | ' dwAction for ImmNotifyIME
|
---|
386 | Const NI_OPENCANDIDATE = &h0010
|
---|
387 | Const NI_CLOSECANDIDATE = &h0011
|
---|
388 | Const NI_SELECTCANDIDATESTR = &h0012
|
---|
389 | Const NI_CHANGECANDIDATELIST = &h0013
|
---|
390 | Const NI_FINALIZECONVERSIONRESULT = &h0014
|
---|
391 | Const NI_COMPOSITIONSTR = &h0015
|
---|
392 | Const NI_SETCANDIDATE_PAGESTART = &h0016
|
---|
393 | Const NI_SETCANDIDATE_PAGESIZE = &h0017
|
---|
394 | Const NI_IMEMENUSELECTED = &h0018
|
---|
395 |
|
---|
396 | ' lParam for WM_IME_SETCONTEXT
|
---|
397 | Const ISC_SHOWUICANDIDATEWINDOW = &h00000001
|
---|
398 | Const ISC_SHOWUICOMPOSITIONWINDOW = &h80000000
|
---|
399 | Const ISC_SHOWUIGUIDELINE = &h40000000
|
---|
400 | Const ISC_SHOWUIALLCANDIDATEWINDOW = &h0000000F
|
---|
401 | Const ISC_SHOWUIALL = &hC000000F
|
---|
402 |
|
---|
403 |
|
---|
404 | ' dwIndex for ImmNotifyIME/NI_COMPOSITIONSTR
|
---|
405 | Const CPS_COMPLETE = &h0001
|
---|
406 | Const CPS_CONVERT = &h0002
|
---|
407 | Const CPS_REVERT = &h0003
|
---|
408 | Const CPS_CANCEL = &h0004
|
---|
409 |
|
---|
410 | ' the modifiers of hot key
|
---|
411 | Const MOD_ALT = &h0001
|
---|
412 | Const MOD_CONTROL = &h0002
|
---|
413 | Const MOD_SHIFT = &h0004
|
---|
414 |
|
---|
415 | Const MOD_LEFT = &h8000
|
---|
416 | Const MOD_RIGHT = &h4000
|
---|
417 |
|
---|
418 | Const MOD_ON_KEYUP = &h0800
|
---|
419 | Const MOD_IGNORE_ALL_MODIFIER = &h0400
|
---|
420 |
|
---|
421 |
|
---|
422 | ' Windows for Simplified Chinese Edition hot key ID from = &h10 - = &h2F
|
---|
423 | Const IME_CHOTKEY_IME_NONIME_TOGGLE = &h10
|
---|
424 | Const IME_CHOTKEY_SHAPE_TOGGLE = &h11
|
---|
425 | Const IME_CHOTKEY_SYMBOL_TOGGLE = &h12
|
---|
426 |
|
---|
427 | ' Windows for Japanese Edition hot key ID from = &h30 - = &h4F
|
---|
428 | Const IME_JHOTKEY_CLOSE_OPEN = &h30
|
---|
429 |
|
---|
430 | ' Windows for Korean Edition hot key ID from = &h50 - = &h6F
|
---|
431 | Const IME_KHOTKEY_SHAPE_TOGGLE = &h50
|
---|
432 | Const IME_KHOTKEY_HANJACONVERT = &h51
|
---|
433 | Const IME_KHOTKEY_ENGLISH = &h52
|
---|
434 |
|
---|
435 | ' Windows for Traditional Chinese Edition hot key ID from = &h70 - = &h8F
|
---|
436 | Const IME_THOTKEY_IME_NONIME_TOGGLE = &h70
|
---|
437 | Const IME_THOTKEY_SHAPE_TOGGLE = &h71
|
---|
438 | Const IME_THOTKEY_SYMBOL_TOGGLE = &h72
|
---|
439 |
|
---|
440 | ' direct switch hot key ID from = &h100 - = &h11F
|
---|
441 | Const IME_HOTKEY_DSWITCH_FIRST = &h100
|
---|
442 | Const IME_HOTKEY_DSWITCH_LAST = &h11F
|
---|
443 |
|
---|
444 | ' IME private hot key from = &h200 - = &h21F
|
---|
445 | Const IME_HOTKEY_PRIVATE_FIRST = &h200
|
---|
446 | Const IME_ITHOTKEY_RESEND_RESULTSTR = &h200
|
---|
447 | Const IME_ITHOTKEY_PREVIOUS_COMPOSITION = &h201
|
---|
448 | Const IME_ITHOTKEY_UISTYLE_TOGGLE = &h202
|
---|
449 | Const IME_ITHOTKEY_RECONVERTSTRING = &h203
|
---|
450 | Const IME_HOTKEY_PRIVATE_LAST = &h21F
|
---|
451 |
|
---|
452 |
|
---|
453 | ' parameter of ImmGetCompositionString
|
---|
454 | Const GCS_COMPREADSTR = &h0001
|
---|
455 | Const GCS_COMPREADATTR = &h0002
|
---|
456 | Const GCS_COMPREADCLAUSE = &h0004
|
---|
457 | Const GCS_COMPSTR = &h0008
|
---|
458 | Const GCS_COMPATTR = &h0010
|
---|
459 | Const GCS_COMPCLAUSE = &h0020
|
---|
460 | Const GCS_CURSORPOS = &h0080
|
---|
461 | Const GCS_DELTASTART = &h0100
|
---|
462 | Const GCS_RESULTREADSTR = &h0200
|
---|
463 | Const GCS_RESULTREADCLAUSE = &h0400
|
---|
464 | Const GCS_RESULTSTR = &h0800
|
---|
465 | Const GCS_RESULTCLAUSE = &h1000
|
---|
466 |
|
---|
467 | ' style bit flags for WM_IME_COMPOSITION
|
---|
468 | Const CS_INSERTCHAR = &h2000
|
---|
469 | Const CS_NOMOVECARET = &h4000
|
---|
470 |
|
---|
471 | ' IME version constants
|
---|
472 | Const IMEVER_0310 = &h0003000A
|
---|
473 | Const IMEVER_0400 = &h00040000
|
---|
474 |
|
---|
475 |
|
---|
476 | ' IME property bits
|
---|
477 | Const IME_PROP_AT_CARET = &h00010000
|
---|
478 | Const IME_PROP_SPECIAL_UI = &h00020000
|
---|
479 | Const IME_PROP_CANDLIST_START_FROM_1 = &h00040000
|
---|
480 | Const IME_PROP_UNICODE = &h00080000
|
---|
481 | Const IME_PROP_COMPLETE_ON_UNSELECT = &h00100000
|
---|
482 |
|
---|
483 |
|
---|
484 | ' IME UICapability bits
|
---|
485 | Const UI_CAP_2700 = &h00000001
|
---|
486 | Const UI_CAP_ROT90 = &h00000002
|
---|
487 | Const UI_CAP_ROTANY = &h00000004
|
---|
488 |
|
---|
489 | ' ImmSetCompositionString Capability bits
|
---|
490 | Const SCS_CAP_COMPSTR = &h00000001
|
---|
491 | Const SCS_CAP_MAKEREAD = &h00000002
|
---|
492 | Const SCS_CAP_SETRECONVERTSTRING = &h00000004
|
---|
493 |
|
---|
494 |
|
---|
495 | ' IME WM_IME_SELECT inheritance Capability bits
|
---|
496 | Const SELECT_CAP_CONVERSION = &h00000001
|
---|
497 | Const SELECT_CAP_SENTENCE = &h00000002
|
---|
498 |
|
---|
499 |
|
---|
500 | ' ID for deIndex of ImmGetGuideLine
|
---|
501 | Const GGL_LEVEL = &h00000001
|
---|
502 | Const GGL_INDEX = &h00000002
|
---|
503 | Const GGL_STRING = &h00000003
|
---|
504 | Const GGL_PRIVATE = &h00000004
|
---|
505 |
|
---|
506 |
|
---|
507 | ' ID for dwLevel of GUIDELINE Structure
|
---|
508 | Const GL_LEVEL_NOGUIDELINE = &h00000000
|
---|
509 | Const GL_LEVEL_FATAL = &h00000001
|
---|
510 | Const GL_LEVEL_ERROR = &h00000002
|
---|
511 | Const GL_LEVEL_WARNING = &h00000003
|
---|
512 | Const GL_LEVEL_INFORMATION = &h00000004
|
---|
513 |
|
---|
514 |
|
---|
515 | ' ID for dwIndex of GUIDELINE Structure
|
---|
516 | Const GL_ID_UNKNOWN = &h00000000
|
---|
517 | Const GL_ID_NOMODULE = &h00000001
|
---|
518 | Const GL_ID_NODICTIONARY = &h00000010
|
---|
519 | Const GL_ID_CANNOTSAVE = &h00000011
|
---|
520 | Const GL_ID_NOCONVERT = &h00000020
|
---|
521 | Const GL_ID_TYPINGERROR = &h00000021
|
---|
522 | Const GL_ID_TOOMANYSTROKE = &h00000022
|
---|
523 | Const GL_ID_READINGCONFLICT = &h00000023
|
---|
524 | Const GL_ID_INPUTREADING = &h00000024
|
---|
525 | Const GL_ID_INPUTRADICAL = &h00000025
|
---|
526 | Const GL_ID_INPUTCODE = &h00000026
|
---|
527 | Const GL_ID_INPUTSYMBOL = &h00000027
|
---|
528 | Const GL_ID_CHOOSECANDIDATE = &h00000028
|
---|
529 | Const GL_ID_REVERSECONVERSION = &h00000029
|
---|
530 | Const GL_ID_PRIVATE_FIRST = &h00008000
|
---|
531 | Const GL_ID_PRIVATE_LAST = &h0000FFFF
|
---|
532 |
|
---|
533 |
|
---|
534 | ' ID for dwIndex of ImmGetProperty
|
---|
535 | Const IGP_GETIMEVERSION = (-4 As DWord)
|
---|
536 | Const IGP_PROPERTY = &h00000004
|
---|
537 | Const IGP_CONVERSION = &h00000008
|
---|
538 | Const IGP_SENTENCE = &h0000000c
|
---|
539 | Const IGP_UI = &h00000010
|
---|
540 | Const IGP_SETCOMPSTR = &h00000014
|
---|
541 | Const IGP_SELECT = &h00000018
|
---|
542 |
|
---|
543 | ' dwIndex for ImmSetCompositionString API
|
---|
544 | Const SCS_SETSTR = (GCS_COMPREADSTR Or GCS_COMPSTR)
|
---|
545 | Const SCS_CHANGEATTR = (GCS_COMPREADATTR Or GCS_COMPATTR)
|
---|
546 | Const SCS_CHANGECLAUSE = (GCS_COMPREADCLAUSE Or GCS_COMPCLAUSE)
|
---|
547 | Const SCS_SETRECONVERTSTRING = &h00010000
|
---|
548 | Const SCS_QUERYRECONVERTSTRING = &h00020000
|
---|
549 |
|
---|
550 | ' attribute for COMPOSITIONSTRING Structure
|
---|
551 | Const ATTR_INPUT = &h00
|
---|
552 | Const ATTR_TARGET_CONVERTED = &h01
|
---|
553 | Const ATTR_CONVERTED = &h02
|
---|
554 | Const ATTR_TARGET_NOTCONVERTED = &h03
|
---|
555 | Const ATTR_INPUT_ERROR = &h04
|
---|
556 | Const ATTR_FIXEDCONVERTED = &h05
|
---|
557 |
|
---|
558 | ' bit field for IMC_SETCOMPOSITIONWINDOW, IMC_SETCANDIDATEWINDOW
|
---|
559 | Const CFS_DEFAULT = &h0000
|
---|
560 | Const CFS_RECT = &h0001
|
---|
561 | Const CFS_POINT = &h0002
|
---|
562 | Const CFS_FORCE_POSITION = &h0020
|
---|
563 | Const CFS_CANDIDATEPOS = &h0040
|
---|
564 | Const CFS_EXCLUDE = &h0080
|
---|
565 |
|
---|
566 | ' conversion direction for ImmGetConversionList
|
---|
567 | Const GCL_CONVERSION = &h0001
|
---|
568 | Const GCL_REVERSECONVERSION = &h0002
|
---|
569 | Const GCL_REVERSE_LENGTH = &h0003
|
---|
570 |
|
---|
571 | ' bit field for conversion mode
|
---|
572 | Const IME_CMODE_ALPHANUMERIC = &h0000
|
---|
573 | Const IME_CMODE_NATIVE = &h0001
|
---|
574 | Const IME_CMODE_CHINESE = IME_CMODE_NATIVE
|
---|
575 | ' IME_CMODE_HANGEUL is old name of IME_CMODE_HANGUL. It will be gone eventually.
|
---|
576 | Const IME_CMODE_HANGEUL = IME_CMODE_NATIVE
|
---|
577 | Const IME_CMODE_HANGUL = IME_CMODE_NATIVE
|
---|
578 | Const IME_CMODE_JAPANESE = IME_CMODE_NATIVE
|
---|
579 | Const IME_CMODE_KATAKANA = &h0002 'only effect under IME_CMODE_NATIVE
|
---|
580 | Const IME_CMODE_LANGUAGE = &h0003
|
---|
581 | Const IME_CMODE_FULLSHAPE = &h0008
|
---|
582 | Const IME_CMODE_ROMAN = &h0010
|
---|
583 | Const IME_CMODE_CHARCODE = &h0020
|
---|
584 | Const IME_CMODE_HANJACONVERT = &h0040
|
---|
585 | Const IME_CMODE_SOFTKBD = &h0080
|
---|
586 | Const IME_CMODE_NOCONVERSION = &h0100
|
---|
587 | Const IME_CMODE_EUDC = &h0200
|
---|
588 | Const IME_CMODE_SYMBOL = &h0400
|
---|
589 | Const IME_CMODE_FIXED = &h0800
|
---|
590 | Const IME_CMODE_RESERVED = &hF0000000
|
---|
591 |
|
---|
592 | ' bit field for sentence mode
|
---|
593 | Const IME_SMODE_NONE = &h0000
|
---|
594 | Const IME_SMODE_PLAURALCLAUSE = &h0001
|
---|
595 | Const IME_SMODE_SINGLECONVERT = &h0002
|
---|
596 | Const IME_SMODE_AUTOMATIC = &h0004
|
---|
597 | Const IME_SMODE_PHRASEPREDICT = &h0008
|
---|
598 | Const IME_SMODE_CONVERSATION = &h0010
|
---|
599 | Const IME_SMODE_RESERVED = &h0000F000
|
---|
600 |
|
---|
601 |
|
---|
602 | ' style of candidate
|
---|
603 | Const IME_CAND_UNKNOWN = &h0000
|
---|
604 | Const IME_CAND_READ = &h0001
|
---|
605 | Const IME_CAND_CODE = &h0002
|
---|
606 | Const IME_CAND_MEANING = &h0003
|
---|
607 | Const IME_CAND_RADICAL = &h0004
|
---|
608 | Const IME_CAND_STROKE = &h0005
|
---|
609 |
|
---|
610 | ' wParam of report message WM_IME_NOTIFY
|
---|
611 | Const IMN_CLOSESTATUSWINDOW = &h0001
|
---|
612 | Const IMN_OPENSTATUSWINDOW = &h0002
|
---|
613 | Const IMN_CHANGECANDIDATE = &h0003
|
---|
614 | Const IMN_CLOSECANDIDATE = &h0004
|
---|
615 | Const IMN_OPENCANDIDATE = &h0005
|
---|
616 | Const IMN_SETCONVERSIONMODE = &h0006
|
---|
617 | Const IMN_SETSENTENCEMODE = &h0007
|
---|
618 | Const IMN_SETOPENSTATUS = &h0008
|
---|
619 | Const IMN_SETCANDIDATEPOS = &h0009
|
---|
620 | Const IMN_SETCOMPOSITIONFONT = &h000A
|
---|
621 | Const IMN_SETCOMPOSITIONWINDOW = &h000B
|
---|
622 | Const IMN_SETSTATUSWINDOWPOS = &h000C
|
---|
623 | Const IMN_GUIDELINE = &h000D
|
---|
624 | Const IMN_PRIVATE = &h000E
|
---|
625 |
|
---|
626 | ' wParam of report message WM_IME_REQUEST
|
---|
627 | Const IMR_COMPOSITIONWINDOW = &h0001
|
---|
628 | Const IMR_CANDIDATEWINDOW = &h0002
|
---|
629 | Const IMR_COMPOSITIONFONT = &h0003
|
---|
630 | Const IMR_RECONVERTSTRING = &h0004
|
---|
631 | Const IMR_CONFIRMRECONVERTSTRING = &h0005
|
---|
632 | Const IMR_QUERYCHARPOSITION = &h0006
|
---|
633 | Const IMR_DOCUMENTFEED = &h0007
|
---|
634 |
|
---|
635 | ' error code of ImmGetCompositionString
|
---|
636 | Const IMM_ERROR_NODATA = (-1)
|
---|
637 | Const IMM_ERROR_GENERAL = (-2)
|
---|
638 |
|
---|
639 |
|
---|
640 | ' dialog mode of ImmConfigureIME
|
---|
641 | Const IME_CONFIG_GENERAL = 1
|
---|
642 | Const IME_CONFIG_REGISTERWORD = 2
|
---|
643 | Const IME_CONFIG_SELECTDICTIONARY = 3
|
---|
644 |
|
---|
645 |
|
---|
646 | ' flags for ImmEscape
|
---|
647 | Const IME_ESC_QUERY_SUPPORT = &h0003
|
---|
648 | Const IME_ESC_RESERVED_FIRST = &h0004
|
---|
649 | Const IME_ESC_RESERVED_LAST = &h07FF
|
---|
650 | Const IME_ESC_PRIVATE_FIRST = &h0800
|
---|
651 | Const IME_ESC_PRIVATE_LAST = &h0FFF
|
---|
652 |
|
---|
653 | Const IME_ESC_SEQUENCE_TO_INTERNAL = &h1001
|
---|
654 | Const IME_ESC_GET_EUDC_DICTIONARY = &h1003
|
---|
655 | Const IME_ESC_SET_EUDC_DICTIONARY = &h1004
|
---|
656 | Const IME_ESC_MAX_KEY = &h1005
|
---|
657 | Const IME_ESC_IME_NAME = &h1006
|
---|
658 | Const IME_ESC_SYNC_HOTKEY = &h1007
|
---|
659 | Const IME_ESC_HANJA_MODE = &h1008
|
---|
660 | Const IME_ESC_AUTOMATA = &h1009
|
---|
661 | Const IME_ESC_PRIVATE_HOTKEY = &h100a
|
---|
662 | Const IME_ESC_GETHELPFILENAME = &h100b
|
---|
663 |
|
---|
664 | ' style of word registration
|
---|
665 | Const IME_REGWORD_STYLE_EUDC = &h00000001
|
---|
666 | Const IME_REGWORD_STYLE_USER_FIRST = &h80000000
|
---|
667 | Const IME_REGWORD_STYLE_USER_LAST = &hFFFFFFFF
|
---|
668 |
|
---|
669 | ' dwFlags for ImmAssociateContextEx
|
---|
670 | Const IACE_CHILDREN = &h0001
|
---|
671 | Const IACE_DEFAULT = &h0010
|
---|
672 | Const IACE_IGNORENOCONTEXT = &h0020
|
---|
673 |
|
---|
674 | ' dwFlags for ImmGetImeMenuItems
|
---|
675 | Const IGIMIF_RIGHTMENU = &h0001
|
---|
676 |
|
---|
677 | ' dwType for ImmGetImeMenuItems
|
---|
678 | Const IGIMII_CMODE = &h0001
|
---|
679 | Const IGIMII_SMODE = &h0002
|
---|
680 | Const IGIMII_CONFIGURE = &h0004
|
---|
681 | Const IGIMII_TOOLS = &h0008
|
---|
682 | Const IGIMII_HELP = &h0010
|
---|
683 | Const IGIMII_OTHER = &h0020
|
---|
684 | Const IGIMII_INPUTTOOLS = &h0040
|
---|
685 |
|
---|
686 | ' fType of IMEMENUITEMINFO structure
|
---|
687 | Const IMFT_RADIOCHECK = &h00001
|
---|
688 | Const IMFT_SEPARATOR = &h00002
|
---|
689 | Const IMFT_SUBMENU = &h00004
|
---|
690 |
|
---|
691 | ' fState of IMEMENUITEMINFO structure
|
---|
692 | Const IMFS_GRAYED = MFS_GRAYED
|
---|
693 | Const IMFS_DISABLED = MFS_DISABLED
|
---|
694 | Const IMFS_CHECKED = MFS_CHECKED
|
---|
695 | Const IMFS_HILITE = MFS_HILITE
|
---|
696 | Const IMFS_ENABLED = MFS_ENABLED
|
---|
697 | Const IMFS_UNCHECKED = MFS_UNCHECKED
|
---|
698 | Const IMFS_UNHILITE = MFS_UNHILITE
|
---|
699 | Const IMFS_DEFAULT = MFS_DEFAULT
|
---|
700 |
|
---|
701 | ' type of soft keyboard
|
---|
702 | ' for Windows Tranditional Chinese Edition
|
---|
703 | Const SOFTKEYBOARD_TYPE_T1 = &h0001
|
---|
704 | ' for Windows Simplified Chinese Edition
|
---|
705 | Const SOFTKEYBOARD_TYPE_C1 = &h0002
|
---|
706 |
|
---|
707 |
|
---|
708 | #endif '_IMM_SDK_DEFINED_
|
---|
709 |
|
---|
710 | #endif '_IMM_
|
---|
711 |
|
---|