source: Include/api_imm.sbp@ 115

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