delphi 屏蔽中文输入法
2015-09-06 10:34
633 查看
#include <imm.h>
#pragma comment(lib, "imm32.lib")
HIMC hImc = ::ImmGetContext( m_hWnd);
屏蔽输入法
::ImmAssociateContext(m_hWnd , NULL);
::ImmReleaseContext(m_hWnd , hImc );
恢复输入法的代码。
::ImmAssociateContext(m_hWnd , hImc );
procedure TForm1.Edit1MouseActivate(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y, HitTest: Integer;
var MouseActivate: TMouseActivate);
begin
ImmAssociateContext(Edit1.Handle, 0);//uses IMM
end;
#pragma comment(lib, "imm32.lib")
HIMC hImc = ::ImmGetContext( m_hWnd);
屏蔽输入法
::ImmAssociateContext(m_hWnd , NULL);
::ImmReleaseContext(m_hWnd , hImc );
恢复输入法的代码。
::ImmAssociateContext(m_hWnd , hImc );
procedure TForm1.Edit1MouseActivate(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y, HitTest: Integer;
var MouseActivate: TMouseActivate);
begin
ImmAssociateContext(Edit1.Handle, 0);//uses IMM
end;
相关文章推荐
- delphi开发:win8 图标问题
- Delphi VCL Menus单元绘制菜单逻辑错误
- delphi sql 图片
- Delphi xe10下载(包含破解补丁和破解视频)
- UTF-8 delphi 函数
- 未测试 Delphi读写UTF-8、Unicode格式文本文件
- Delphi中ADO存取效率的探讨
- JS调用Delphi编写的OCX控件
- delphi 线程实战用法
- Delphi中TStringList类常用属性方法详解
- delphi json用法
- delphi数据库的备份及还原
- Delphi考虑sql注入 QuotedStr
- 使用THashedStringList管理结构体数据()
- Delphi会自动初始化全局变量和类成员变量,但不初始化局部变量
- Delphi 打印 TPrinter
- delphi数据类型解析
- Delphi 7 升级到 Delphi 2010 总结
- Delphi2010下的FillChar
- delphi随机数种子