16,473
社区成员
发帖
与我相关
我的任务
分享
// 调用挂断事件按钮,获取当前时间,写入日志文件,
CString time = CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S");
vTelEndTime=CTime::GetCurrentTime();
CTimeSpan cts;
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
CMyFormView *pView = (CMyFormView *) pChild->GetActiveView();
CPropPage1 * cp1;
cp1 = (CPropPage1 *)pView->m_PropSheet.GetActivePage();
CTime telStartTime=CPropPage1::vTelStartTime;
cts=vTelEndTime-telStartTime;
CString timelen=cts.Format("%H:%M:%S");
CString weijie;
weijie="视频去电";
CPropPage4* cp4;
(CPropPage4 *)pView->m_PropSheet.GetActivePage();
cp4->TelHistory0(time,timelen,m_tel,weijie);