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