摘要: 在vc中要对CEdit控件的回车事件进行响应需要在窗口中响应PreTranslateMessage事件来变相实现,参考代码如下:BOOL CAddrListDlg::PreTranslateMessage(MSG* pMsg){// TODO: Add your specialized code here and/or call the base classif(pMsg->message == WM_KEYDOWN) {if(pMsg->wParam == VK_RETURN) {UINT nID = GetFocus()->GetDlgCtrlID();switch(nI 阅读全文
posted @ 2012-10-12 23:21 晨风世界 阅读(519) 评论(0) 推荐(0) 编辑