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