1 | 'imm.sbp
|
---|
2 |
|
---|
3 | #ifndef _INC_IMM
|
---|
4 | #define _INC_IMM
|
---|
5 |
|
---|
6 | Type _System_DeclareHandle_HIMC:unused As DWord:End Type
|
---|
7 | TypeDef HIMC = *_System_DeclareHandle_HIMC
|
---|
8 |
|
---|
9 | Const CFS_DEFAULT = &H0000
|
---|
10 | Const CFS_RECT = &H0001
|
---|
11 | Const CFS_POINT = &H0002
|
---|
12 | Const CFS_FORCE_POSITION = &H0020
|
---|
13 | Const CFS_CANDIDATEPOS = &H0040
|
---|
14 | Const CFS_EXCLUDE = &H0080
|
---|
15 | Type COMPOSITIONFORM
|
---|
16 | dwStyle As DWord
|
---|
17 | ptCurrentPos As POINTAPI
|
---|
18 | rcArea As RECT
|
---|
19 | End Type
|
---|
20 |
|
---|
21 | Declare Function ImmDisableIME Lib "imm32" (idThread As DWord) As BOOL
|
---|
22 |
|
---|
23 | Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
24 | Declare Function ImmGetCompositionStringA Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
25 | Declare Function ImmGetCompositionStringW Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
26 | Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
27 | Declare Function ImmGetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
28 | Declare Function ImmGetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
29 | Declare Function ImmGetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL
|
---|
30 |
|
---|
31 | Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lplf As LOGFONT) As Long
|
---|
32 | Declare Function ImmSetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lplf As LOGFONT) As Long
|
---|
33 | Declare Function ImmSetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lplf As LOGFONT) As Long
|
---|
34 | Declare Function ImmSetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL
|
---|
35 |
|
---|
36 | Declare Function ImmGetContext Lib "imm32" (hWnd As HWND) As HIMC
|
---|
37 | Declare Function ImmReleaseContext Lib "imm32" (hWnd As HWND, hIMC As HIMC) As BOOL
|
---|
38 |
|
---|
39 | Const GCS_COMPREADSTR = &h0001
|
---|
40 | Const GCS_COMPREADATTR = &h0002
|
---|
41 | Const GCS_COMPREADCLAUSE = &h0004
|
---|
42 | Const GCS_COMPSTR = &h0008
|
---|
43 | Const GCS_COMPATTR = &h0010
|
---|
44 | Const GCS_COMPCLAUSE = &h0020
|
---|
45 | Const GCS_CURSORPOS = &h0080
|
---|
46 | Const GCS_DELTASTART = &h0100
|
---|
47 | Const GCS_RESULTREADSTR = &h0200
|
---|
48 | Const GCS_RESULTREADCLAUSE = &h0400
|
---|
49 | Const GCS_RESULTSTR = &h0800
|
---|
50 | Const GCS_RESULTCLAUSE = &h1000
|
---|
51 |
|
---|
52 |
|
---|
53 | #endif '_INC_IMM
|
---|