private void initIMEControl() { api.Initialize(Handle); //Composition api.m_compositionHandler.eventComposition += M_compositionHandler_eventComposition;; api.m_compositionHandler.eventGetTextExt += M_compositionHandler_eventGetTextExt;; //CandidateList api.m_candidateListWrapper.eventCandidateList += M_candidateListWrapper_eventCandidateList; //AlphaMode api.eventAlphaMode += Api_eventAlphaMode; api.setState(true); IMEStateChange.Text = "IMEState:" + (api.State() ? "Enabled" : "Disabled"); IMEAPIData.Text = api is TSF ? "TF API" : "IMM32 API"; UILessData.Text = api.FullScreen() ? "TRUE" : "FALSE"; }