#include "Imm.h" #pragma comment(lib, "Imm32.Lib") HIMC hIMC = ImmGetContext(::GetFocus()); DWORD dwConv, dwSent; bool b = ImmGetConversionStatus(hIMC, &dwConv, &dwSent); if ((dwConv & IME_CMODE_LANGUAGE) != IME_CMODE_NATIVE) { // 英文輸入法; }