Accelerators processing before CMFCPropertyGridCtrl
来源:互联网 发布:三星一体机扫描软件 编辑:程序博客网 时间:2024/05/20 02:51
Accelerators processing before CMFCPropertyGridCtrl
I am having a problem with accelerators processing before CMFCPropertyGridCtrl. So if you are editing a text box and press 'delete', it executes the accelerator command instead of deleteing a character in the edit box. How can I resolve this issue?
Implement the PreTranslateMessage function and, depending on whether the property grid has focus or not, pass the message to accelerator or not.
Code:
m_hAccel = ::LoadAccelerators(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MYDIALOG));BOOL CMyDialog::PreTranslateMessage(MSG* pMsg) { ... if(m_hAccel && ...not grid has focus...) { if(::TranslateAccelerator(m_hWnd, m_hAccel, pMsg)) return(TRUE); } return CDialog::PreTranslateMessage(pMsg);}
- Accelerators processing before CMFCPropertyGridCtrl
- CMFCPropertyGridCtrl
- CMFCPropertyGridCtrl
- Whitespace is not allowed before an XML Processing
- Flex编译错误 - Whitespace is not allowed before an XML Processing Instruction
- CMFCPropertyGridCtrl 使用简记
- CMFCPropertyGridCtrl 首列最小问题
- CMFCPropertyGridCtrl 使用简记
- CMFCPropertyGridCtrl响应消息
- CMFCPropertyGridCtrl 的简单教程
- CMFCPropertyGridCtrl的简单教程
- CMFCPropertyGridCtrl的使用
- CMFCPropertyGridCtrl 使用简记
- CMFCPropertyGridCtrl 的简单教程
- CMFCPropertyGridCtrl响应消息
- CMFCPropertyGridCtrl,CMFCPropertyGridProperty 响应消息
- CMFCPropertyGridCtrl 的简单教程
- CMFCPropertyGridCtrl响应消息
- try...catch...finally的疑问
- css 定位
- Redhat 使用Yum安装、更新rpm包
- [SQL SERVER] 跨服务器查询详解
- 相关的注册表参数
- Accelerators processing before CMFCPropertyGridCtrl
- VS 2008 Windows Media Player控件的使用技巧
- 盗版导致印度成为网络犯罪重灾区
- BaPi学习
- 对silverlight中DoubleAnimation的思考
- MFC Ribbon ShowContextCategories函数 获取Ribbon指针 Visual Studio 2010
- Oracle软件无法升级的问题解决过程
- Delphi XE程序设计系列 1-主从架构, 多层到JSON和REST
- 中断字符驱动程序