void CMy2Dlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
MessageBox("nChar");
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}我想让按下的键值显示出来 比如我按下A则对话框显示A
{
// TODO: Add your message handler code here and/or call default
MessageBox("nChar");
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}我想让按下的键值显示出来 比如我按下A则对话框显示A
解决方案 »
- VC++ 2008中,函数SetMenuItemBitmaps()无效果
- 南京 工资1200,有多少人愿意做开发?有同样“遭遇”的过来报个到
- 在Windows中编译Openh323,希望大家支持,共同学习!!
- 如何拦截NT/2000/XP系统开机时的F8按键?
- 求救,情况紧急,请教一个二维制图的问题
- vc+sql server,跟时间字段有关的查询语句如何写?(内详)
- 请问哪本VC++6.0的书最容易上手?
- 列表控件
- 不同网段,如何判断目标IP地址,是活动的IP地址,类似PING的功能。
- 怎样通过COleDropTarget获得网页超级连接名字而不是连接内容,比如获得"中国软件"而不是"http://www.csdn.net"
- 用C++如何读取主板的序列号~~急用
- 关于uafxcw.lib
MessageBox(str);
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_CHAR)
{
CString str;
str.Format("%c",pMsg->wParam);
MessageBox(str);
}
return CDialog::PreTranslateMessage(pMsg);
}
PreTranslateMessage(MSG* pMsg)这个函数是干嘛用的 怎么用
求讲解PreTranslateMessage(MSG* pMsg)