16,471
社区成员
发帖
与我相关
我的任务
分享
BOOL CTestComDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->hwnd == GetDlgItem(IDOK)->m_hWnd && pMsg->message == WM_MOUSEMOVE)
{
CTime tm=CTime::GetCurrentTime();
CString str;
str=tm.Format("%H:%M:%S");
SetDlgItemText(IDOK,str);
}
else
SetDlgItemText(IDOK,"确定");
return CDialog::PreTranslateMessage(pMsg);
}