IME- How to terminate the in-progress composition

Parmod Kumar 1 Reputation point
2022-02-11T07:52:41.03+00:00

I have created 2 custom edit boxs (drawing rectangle and text) in a single window (language C++)

when I start typing in first editbox then TSF start composition, then if click 2nd edit box and type a character 1st edit box composition text get prepended , please see the attached images.

I tried calling ITfContextOwnerCompositionServices::TerminateComposition but still I get previous composition text in settext() call back function.

173492-image.png

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
{count} votes