键盘Enter键在MFC对话框中不起作用? [英] Keyboard Enter key not working in MFC Dialog Box?
本文介绍了键盘Enter键在MFC对话框中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
键盘 Enter 键在MFC对话框中不起作用? 输入用户名和密码并按 Enter 键时,我有一个MFC登录对话框,而当我使用鼠标单击登录名时,对话框关闭.
Keyboard Enter key not working in MFC Dialog Box ? I have one MFC Login dialog box when I enter Username and password and hit Enter key the dialog box close down while when I use mouse to click on login it login's successfully.
在MFC中使键盘键起作用需要做些什么?
What I need to do for making keyboard key work in MFC ?
推荐答案
在这种情况下,请处理数据库的pretranslate()方法中的enter键.
in this case handle the enter key in the pretranslate() method of your db.
这篇关于键盘Enter键在MFC对话框中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文