• After more than 30 years running websites and forums I am retiring.

    I have made many friends through the years. I will cherish my time getting to know you. I wish you all the best. This was not an easy decision to make. The cost to keep the communities running has gotten to the point where it's just too expensive. Security certificates, hosting cost, software renewals and everything else has increased threefold. While costs are up ad revenue is down. It's no longer viable to keep things running.

    All sites will be turned off on Thursday 30 November 2023. If you are interested in acquiring any of the websites I own you can Email Schwarz Network.

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