G gboyjuan Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-02 #1 如果将Windows的默认输入法改为了某个中文输入法,<br>当程序中的Edit获得焦点时,将Windows的输入法状态改为英文输入状态<br>请教各位大富翁!
G gboyjuan Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-02 #3 TO:yczjs<br>老兄,这个方法你试过了吗?希望你试试!<br>答案是错的,Edit1.IMEName本身就没有被指定
C chnplzh Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-02 #4 Edit1.ImeMode:=imClose <br>
S siyan Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-02 #5 procedure TForm1.Edit1Enter(Sender: TObject);<br>var<br> myhkl:hkl;<br>begin<br> myhkl:=GetKeyBoardLayOut(0);<br> if ImmIsIME(myhkl) then<br> ImmsimulateHotKey(Edit1.Handle,IME_cHotKey_IME_NonIME_Toggle);<br>end;<br>
procedure TForm1.Edit1Enter(Sender: TObject);<br>var<br> myhkl:hkl;<br>begin<br> myhkl:=GetKeyBoardLayOut(0);<br> if ImmIsIME(myhkl) then<br> ImmsimulateHotKey(Edit1.Handle,IME_cHotKey_IME_NonIME_Toggle);<br>end;<br>