vs2015 when double-click UI designer Ann on time, suggesting that there is already overloaded functions OnBnClickedBtn
Solution:
.Cpp file corresponding to check whether the pre-modification for the button ID of message correlation.
ON_BN_CLICKED(IDC_BUTTON2, &CSleepDataStatisticsDlg::OnBnClickedBtnAdd)
Read:
ON_BN_CLICKED(IDC_BTN_ADD, &CSleepDataStatisticsDlg::OnBnClickedBtnAdd)
If that does not work, then the corresponding .cpp .h delete all files associated with this message button function.
afx_msg void OnBnClickedBtnAdd (); // delete this sentence! !
cpp
ON_BN_CLICKED (IDC_BUTTON2, & C strings separated Dlg :: OnBnClickedBtnAdd) // delete this sentence! !
void C strings are separated Dlg :: OnBnClickedBtnAdd () // Delete all! !
{
// TODO: add this control notification handler code
}