Guest gsegria Posted October 21, 2021 Posted October 21, 2021 I created a dialog application in Visual Studio MFC. I create BN_CLICKED function to enable IDC_CHECK1. I create DOUBLECLICKED function to other functoin. When i call DOUBLECLICKED function will call BN_CLICKED function . Any way to call DOUBLECLICKED function and don't call BN_CLICKED function . ============================== void CMyTest1Dlg::DoStaticFunc(int iSelectIndex) { BOOL boCState; boCState = this->m_chk1[iSelectIndex].GetCheck(); this->m_chk1[iSelectIndex].SetCheck(!boCState); } void CMyTest1Dlg::OnBnClickedButton1() { // TODO: Add your control notification handler code here DoStaticFunc(0); } void CMyTest1Dlg::OnBnDoubleclickedButton1() { // TODO: Add your control notification handler code here // will do another } ============================== Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.