摘要:
在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
晨风世界
阅读(597)
评论(0)
推荐(1)

浙公网安备 33010602011771号