示例#1
0
void DTime::OnPause() 
{
   DDX_Check(&CDataExchange(this, TRUE), IDC_PAUSE, m_pause);
   GTime &t = m_pView->view->time;

   t.pause = m_pause;
}
示例#2
0
void DTime::UpdateT()
{	   
   GTime &t = m_pView->view->time;
   m_t= t.t;
   DDX_Text(&CDataExchange(this, FALSE),IDC_T, m_t);
   m_slider_t.SetPos(MAPT(m_t));

}
示例#3
0
void DTime::UpdatePlay()
{
	   GTime &t = m_pView->view->time;
	   
	   m_enable = t.enabled;
	   m_pause = t.pause;

       SetDlgItemText(IDC_START,m_enable ? "Stop" : "Start");
	   DDX_Check(&CDataExchange(this, FALSE), IDC_PAUSE, m_pause);

}
示例#4
0
void CErrorAnal_dlg::OnOK()
{
  OnChangeFixedOptions();
  DDX_Text(&CDataExchange(this,true), IDC_SIGMA_OUT, m_sigma_app);

  error_info.separam=m_separam!=FALSE;
  error_info.peak_data=m_peak_data;
  error_info.sadl_data=m_sadl_data;
  error_info.sigma_cal=m_sigma_cal;
  error_info.sigma_app=m_sigma_app;

  EndDialog(IDOK);
}
示例#5
0
void DTime::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	 float old_t = m_t;
	 // update t with slider value
	 int t = m_slider_t.GetPos();
	 m_t = UNMAPT(t);
 	 DDX_Text(&CDataExchange(this, FALSE),IDC_T, m_t);

	 m_dt_slider.OnScroll(this);

	 
	 if (t != old_t) 
	    OnApply(); // <<<<<<<<<<<<<<<Update
	 
//	 TRACE("slider code %d t = %d\n",nSBCode,m_t);

	 CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
}
示例#6
0
void CErrorAnal_dlg::DoExchangeStatOptions(bool save)
{
  DDX_CBIndex(&CDataExchange(this,save), IDC_STAT_MODEL, m_stat_model);
}
示例#7
0
void CErrorAnal_dlg::OnSeparam()
{
  DDX_Check(&CDataExchange(this,TRUE),IDC_SEPARAM,m_separam);
  set_tabs();
}