ON_CBN_SELCHANGE(IDC_F4, OnSelChangeCombo) ON_CBN_EDITCHANGE(IDC_F4, OnSelChangeEditC)
void CTab::OnSelChangeCombo() { int m; UpdateData(true); m = ((CComboBox *) GetDlgItem(IDC_F4))->GetCurSel(); if(m >= 0) ((CComboBox *) GetDlgItem(IDC_F4))->GetLBText(m, m_szETF4); else m_szETF4.Empty(); UpdateData(FALSE); }
void CElecTab::OnSelChangeEditC() { int m; CString last4; last4 = m_szETF4; UpdateData(true); if(!m_szETF4.IsEmpty() && m_szETF4 != last4) { if((m = ((CComboBox *) GetDlgItem(IDC_F4))->FindStringExact(-1, last4)) != CB_ERR) ((CComboBox *) GetDlgItem(IDC_F4))->DeleteString(m); ((CComboBox *) GetDlgItem(IDC_F4))->AddString(m_szETF4); } UpdateData(FALSE); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)