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