DDX_Check(pDX, IDC_MOVED_BLOCKS, m_bMovedBlocks);
DDX_Check(pDX, IDC_MATCH_SIMILAR_LINES, m_bMatchSimilarLines);
//}}AFX_DATA_MAP
+ UpdateControls();
}
BEGIN_MESSAGE_MAP(PropCompare, CPropertyPage)
//{{AFX_MSG_MAP(PropCompare)
ON_BN_CLICKED(IDC_COMPARE_DEFAULTS, OnDefaults)
+ ON_CBN_SELCHANGE(IDC_DIFF_ALGORITHM, OnCbnSelchangeDiffAlgorithm)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
UpdateData(FALSE);
}
+void PropCompare::OnCbnSelchangeDiffAlgorithm()
+{
+ UpdateControls();
+}
+
+void PropCompare::UpdateControls()
+{
+ CComboBox * pCombo = (CComboBox*)GetDlgItem(IDC_DIFF_ALGORITHM);
+ EnableDlgItem(IDC_MOVED_BLOCKS, pCombo->GetCurSel() == 0);
+}
//{{AFX_MSG(PropCompare)
afx_msg BOOL OnInitDialog() override;
afx_msg void OnDefaults();
+ afx_msg void OnCbnSelchangeDiffAlgorithm();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
+
+ void UpdateControls();
};