16,471
社区成员
发帖
与我相关
我的任务
分享
BOOL CMyDlg::PreTranslateMessage(MSG* pMsg) {
if (pMsg->message == WM_KEYDOWN) //响应键盘组合键消息
{
if (GetDlgItem(IDC_EDIT1)==GetFocus())
{
if( pMsg->wParam==86 && GetKeyState(VK_CONTROL)&0x80)
{//AfxMessageBox(_T("按键组合成功"));
m_str="Ctrl+V";
UpdateData(FALSE);
}
}
}
return CDialog::PreTranslateMessage(pMsg);
}