Jump to content
Xtreme .Net Talk

Visual Studio MFC dialog application , Press button to clicked


Recommended Posts

Guest gsegria
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...