Demo entry 6418480

cpp

   

Submitted by anonymous on May 25, 2017 at 19:47
Language: C++. Code size: 829 Bytes.

void CTTestDoc::OnCollectStart()
{
	// TODO: 在此添加命令处理程序代码

	CMainFrame* pFrame = (CMainFrame*)(AfxGetApp()->m_pMainWnd);
	CTotalView* pTView = (CTotalView*)pFrame->m_wndSplitter2.GetPane(0,0);
	CDetailView* pDView = (CDetailView*)pFrame->m_wndSplitter2.GetPane(1,0);
	CControlView* pCView = (CControlView*)pFrame->m_wndSplitter.GetPane(0,0);
	srand((unsigned)time(NULL));
	for(int i = 0; i < 1024; i++)
	{
		//m_Dot[i] = m_nHight*(1+sin(double(m_nPeriod*i)));
		m_Dot[i] = int(m_nHight) * rand()%1000;
	}
	pCView -> SetTime();
	m_SelectCounts = m_Dot[m_SelectChannel-1];
	if(m_ROIStart < m_ROIStop)
	{
		pCView -> m_bCounts = m_SelectCounts;
		pCView -> UpdateData(FALSE);
	}
	m_enableStart = FALSE;
	m_enableStop = TRUE;
	m_enableClear = FALSE;
	pTView->Invalidate(FALSE);
	pDView->Invalidate(FALSE);
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).