BOOL CReaderView::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_CHAR)
{AfxMessageBox(pMsg->wParam);
return CHtmlView::PreTranslateMessage(pMsg);
}弹出的对话框什么也不显示?为什么?不是应该显示character code 吗?
{
if (pMsg->message == WM_CHAR)
{AfxMessageBox(pMsg->wParam);
return CHtmlView::PreTranslateMessage(pMsg);
}弹出的对话框什么也不显示?为什么?不是应该显示character code 吗?
BOOL CReaderView::PreTranslateMessage(MSG* pMsg)
{
char ms[10];
if (pMsg->message == WM_CHAR){
_itoa((int)LOWORD(pMsg->wParam),ms,10);
AfxMessageBox(ms);
}
return CHtmlView::PreTranslateMessage(pMsg);
}没有的话就重装系统吧!
"windows 信息端口初始化失败"之后,MODEM就终止通讯了。这跟
AfxMessageBox有什么关系?
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
我按照你的代码做了改动已经成功的显示code了。
要是我想显示汉字怎么办?
上面输入汉字之后对话框显示汉字的第二个wm_char的code值,
而Ceditview里没有所输入汉字显示。
能不能对话框显示所输入汉字,并且在CeditView里显示所输入汉字?
然后写(unsigned char)wParam