Visual Studio MFC dialog application , Press button to clicked

G

gsegria

Guest
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
}


==============================




1614648








Continue reading...
 
Top Bottom