16,472
社区成员
发帖
与我相关
我的任务
分享
void CConfigDlg::OnBnClickedBOk()
{
// TODO: Add your control notification handler code here
CString str;
str.Format(_T("%f"), m_compensation);
AfxMessageBox(str);
UpdateData(TRUE);
str.Format(_T("%f"), m_compensation);
AfxMessageBox(str);
m_config.m_auto_identification = m_auto_identification;
m_config.m_black_background = m_black_background;
m_config.m_color_threshold = m_color_threshold;
m_config.m_target_length = m_target_length;
m_config.m_length_per_pixel = m_length_per_pixel;
m_config.m_compensation = m_compensation;
m_config.set_config(_T("config.ini"));
OnOK();
}