void CMy2Dlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
CString str;
str.Format("%d",nChar);
//str=nChar;
MessageBox(str);
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}str.Format("%d",nChar);用这句代码发出来的str为译码 及按下A发送出来65
str=nChar; 用这句代码发送出来的就是A
{
CString str;
str.Format("%d",nChar);
//str=nChar;
MessageBox(str);
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}str.Format("%d",nChar);用这句代码发出来的str为译码 及按下A发送出来65
str=nChar; 用这句代码发送出来的就是A
求讲解PreTranslateMessage(MSG* pMsg) 这个函数