C++中,如何判断是否按下键盘的“del”按键??

来源:百度知道 编辑:UC知道 时间:2024/06/10 20:48:01
RT,谢谢

参考:

BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_KEYDOWN)
{
switch(pMsg->wParam)
{
case VK_DELETE:
MessageBox("你按下的是Delete!!!!","信息提示",MB_OK);
return TRUE;
}
}
return CFrameWnd::PreTranslateMessage(pMsg);
}