'imm.sbp #ifndef _INC_IMM #define _INC_IMM Type _System_DeclareHandle_HIMC:unused As DWord:End Type TypeDef HIMC = *_System_DeclareHandle_HIMC Const CFS_DEFAULT = &H0000 Const CFS_RECT = &H0001 Const CFS_POINT = &H0002 Const CFS_FORCE_POSITION = &H0020 Const CFS_CANDIDATEPOS = &H0040 Const CFS_EXCLUDE = &H0080 Type COMPOSITIONFORM dwStyle As DWord ptCurrentPos As POINTAPI rcArea As RECT End Type Declare Function ImmDisableIME Lib "imm32" (idThread As DWord) As BOOL #ifdef UNICODE Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringW" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long #else Declare Function ImmGetCompositionString Lib "imm32" Alias "ImmGetCompositionStringA" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long #endif Declare Function ImmGetCompositionStringA Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long Declare Function ImmGetCompositionStringW Lib "imm32" (hIMC As HIMC, dwIndex As DWord, pBuf As VoidPtr, dwBufLen As DWord) As Long #ifdef UNICODE Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL #else Declare Function ImmGetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As BOOL #endif Declare Function ImmGetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As BOOL Declare Function ImmGetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As BOOL Declare Function ImmGetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL #ifdef UNICODE Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontW" (hIMC As HIMC, ByRef lf As LOGFONT) As Long #else Declare Function ImmSetCompositionFont Lib "imm32" Alias "ImmSetCompositionFontA" (hIMC As HIMC, ByRef lf As LOGFONT) As Long #endif Declare Function ImmSetCompositionFontA Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTA) As Long Declare Function ImmSetCompositionFontW Lib "imm32" (hIMC As HIMC, ByRef lf As LOGFONTW) As Long Declare Function ImmSetCompositionWindow Lib "imm32" (hIMC As HIMC, ByRef CompForm As COMPOSITIONFORM) As BOOL Declare Function ImmGetContext Lib "imm32" (hWnd As HWND) As HIMC Declare Function ImmReleaseContext Lib "imm32" (hWnd As HWND, hIMC As HIMC) As BOOL Const GCS_COMPREADSTR = &h0001 Const GCS_COMPREADATTR = &h0002 Const GCS_COMPREADCLAUSE = &h0004 Const GCS_COMPSTR = &h0008 Const GCS_COMPATTR = &h0010 Const GCS_COMPCLAUSE = &h0020 Const GCS_CURSORPOS = &h0080 Const GCS_DELTASTART = &h0100 Const GCS_RESULTREADSTR = &h0200 Const GCS_RESULTREADCLAUSE = &h0400 Const GCS_RESULTSTR = &h0800 Const GCS_RESULTCLAUSE = &h1000 #endif '_INC_IMM