//if ... then
// 需要中文输入的字段
// hklKeyboardLayout=GetKeyboardLayout(0)
// if not ImmIsIME(hklKeyboardLayout) then
// ImmSimulateHotKey(handle(parent),16)
// end if
//else
//// 英文输入字段
// hklKeyboardLayout=GetKeyboardLayout(0)
// if ImmIsIME(hklKeyboardLayout) then
// ImmSimulateHotKey(handle (parent),16)
// end if
//end if