用ClassWiard建立了消息映射吗? 是Dialog程序用PreTranslateMessage()来办吧! 如: BOOL CMyDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if(pMsg->wParam==VK_F2) OnStaticCopy(); return CDialog::PreTranslateMessage(pMsg); }
ID_EIDT_CUT Ctrl+Z VIRTKEY
但是在CEDIT里还是不能用这几个快捷键。
另,我的TOOLBAR的TOOLTIP也不能显示了。
为什么啊。。
我的程序可是运行得很正常啊。没有什么错。
是Dialog程序用PreTranslateMessage()来办吧!
如:
BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->wParam==VK_F2)
OnStaticCopy();
return CDialog::PreTranslateMessage(pMsg);
}
别好象没有OnStaticCopy()这个函数啊
然后在生成的函数中写代码!