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
解决方案 »
- 怎么从Cimage复制图片到CBitmap
- 急急急急!!!web控件怎么让网页的对话框不显示
- ADO访问ACCESS,在我的程序写数据库时不希望其它程序访问数据库,应该用什么方法?这里的其它程序可能不是在数据库所在的机器上运行。
- 使用.def模块定义文件如何导出类?
- 快疯了!f5不会出错,可ctrl+f5就问题多多,动不动就是各种异常,why,这一般是原因啊?
- 求助!关于调试!
- 如何改变在视中显示的图像的大小?
- 答者有分!关于在skinmagic中使用TreeCtrl,窗口重绘的问题!
- BSTR字符串到TCHAR类型的转换
- 请问高手,如何获得默认打印机及其属性?
- 用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)