source: Include/api_imm.sbp@ 119

Last change on this file since 119 was 119, checked in by イグトランス (egtra), 18 years ago

Unicode (#50) 前準備
Byte→Char (#51) 型名は殆ど完了、ただし中身までは手を付けていないものが多い

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