Today in the process of work encountered in the Edit and ComboBox can only enter the number (full-width number is also allowed), do not want to pass the full half-angle conversion, only from the input method to start.
Check the relevant information to get the following methods:
1. The entire window disables the input method (the following process is disabled):
Immdisableime (GetCurrentThreadID ());
2. IME disables full-width mode:
HIMC HIMC;
DWORD Dwconvmode, Dwsentmode;
HIMC = Immgetcontext ("Handle with parameter disabled");
Immgetconversionstatus (HIMC, &dwconvmode, &dwsentmode);
Immsetconversionstatus (HIMC, Dwconvmode & ~ime_cmode_fullshape, Dwsentmode); Take the full-width mode;
3. Input method is disabled directly (disabled for the specified handle)
CEdit *pedit = (cedit*) m_combobox. GetWindow (Gw_child); Gets the handle to the edit box in the ComboBox;
if (PEdit)
{
:: Immgetcontext (Pedit->getsafehwnd ());
Immassociatecontext (Pedit->getsafehwnd (), NULL);
}
IME masking and full half-width switching