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 | #ifdef UNICODE
|
---|
23 | Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
24 | #else
|
---|
25 | Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
26 | #endif
|
---|
27 | Declare Function ImmGetCompositionStringA Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
28 | Declare Function ImmGetCompositionStringW Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long
|
---|
29 |
|
---|
30 | #ifdef UNICODE
|
---|
31 | Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
32 | #else
|
---|
33 | Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL
|
---|
34 | #endif
|
---|
35 | Declare Function ImmGetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As BOOL
|
---|
36 | Declare Function ImmGetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As BOOL
|
---|
37 | Declare Function ImmGetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL
|
---|
38 |
|
---|
39 | #ifdef UNICODE
|
---|
40 | Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lplf As LOGFONT) As Long
|
---|
41 | #else
|
---|
42 | Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lplf As LOGFONT) As Long
|
---|
43 | #endif
|
---|
44 | Declare Function ImmSetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lplf As LOGFONTA) As Long
|
---|
45 | Declare Function ImmSetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lplf As LOGFONTW) As Long
|
---|
46 | Declare Function ImmSetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL
|
---|
47 |
|
---|
48 | Declare Function ImmGetContext Lib "imm32" (hWnd As HWND) As HIMC
|
---|
49 | Declare Function ImmReleaseContext Lib "imm32" (hWnd As HWND, hIMC As HIMC) As BOOL
|
---|
50 |
|
---|
51 | Const GCS_COMPREADSTR = &h0001
|
---|
52 | Const GCS_COMPREADATTR = &h0002
|
---|
53 | Const GCS_COMPREADCLAUSE = &h0004
|
---|
54 | Const GCS_COMPSTR = &h0008
|
---|
55 | Const GCS_COMPATTR = &h0010
|
---|
56 | Const GCS_COMPCLAUSE = &h0020
|
---|
57 | Const GCS_CURSORPOS = &h0080
|
---|
58 | Const GCS_DELTASTART = &h0100
|
---|
59 | Const GCS_RESULTREADSTR = &h0200
|
---|
60 | Const GCS_RESULTREADCLAUSE = &h0400
|
---|
61 | Const GCS_RESULTSTR = &h0800
|
---|
62 | Const GCS_RESULTCLAUSE = &h1000
|
---|
63 |
|
---|
64 |
|
---|
65 | #endif '_INC_IMM
|
---|