At 16 bit version IME, the IME is attached to the Frame window with FCF_DBE_APPSTAT.
At the new IM module, all Frame window have the IM instance. All keyboard event will be passed to the IME.