117 string[] candStrList =
new string[candList.dwCount];
119 for (
int i = (
int)(candList.dwCount - 1); i >= 0; i--)
121 int start = (int)offsets[i];
126 candStrList[num] = unicode.
GetString(span.
Slice(num2, next - 2 - num2));
164 if (message.Msg == 8)
170 if (message.Msg == 7)
179 if (message.Msg == 641)
204 int num = message.WParam.ToInt32();
205 if ((uint)(num - 3) <= 2u)
218 protected override void Dispose(
bool disposing)
WindowsMessageHook _wndProcHook
void FinalizeString(bool bSend=false)
bool PreFilterMessage(ref Message message)
override uint SelectedCandidate
override void OnDisable()
override bool IsCandidateListVisible
void SetEnabled(bool bEnable)
void UpdateCandidateList()
override uint CandidateCount
override void Dispose(bool disposing)
override string GetCandidate(uint index)
override string CompositionString
WinImm32Ime(WindowsMessageHook wndProcHook, IntPtr hWnd)
string GetCompositionString()
static IntPtr ImmAssociateContext(IntPtr hWnd, IntPtr hImc)
static int ImmGetCandidateList(IntPtr hImc, uint dwIndex, ref byte lpCandList, int dwBufLen)
static bool ImmReleaseContext(IntPtr hWnd, IntPtr hImc)
static IntPtr ImmGetContext(IntPtr hWnd)
static bool ImmNotifyIME(IntPtr hImc, uint dwAction, uint dwIndex, uint dwValue)
static bool ImmSetCompositionString(IntPtr hImc, uint dwIndex, string lpComp, int dwCompLen, string lpRead, int dwReadLen)
static int ImmGetCompositionString(IntPtr hImc, uint dwIndex, ref byte lpBuf, int dwBufLen)
static IntPtr GetForegroundWindow()
void AddMessageFilter(IMessageFilter filter)
void RemoveMessageFilter(IMessageFilter filter)
static byte Min(byte val1, byte val2)
unsafe string GetString(byte *bytes, int byteCount)
static readonly IntPtr Zero
Span< T > Slice(int start)