主题:告诉我错在什么地方啊
void CComboListDig::OnCloseupCombo()
{
CString szChoice;
CString szResult;
int nChoice;
m_combolist.GetWindowText(szChoice);
if (nChoice !=CB_ERR)
{
m_combolist.GetLBText(nChoice,szChoice);
szResult="Closing after selecting"+szChoice;
}
else if (szChoice.IsEmpty()==TRUE)
{ szResult = "No Choice selectd";}
else if (m_combolist.FindStringExact(-1,szChoice)!=CB_ERR)
{ szResult="Closeing after selecting"+szChoice;}
else
{
m_combolist.AddString(szChoice);
szResult = "adding"+szChoice +"to List";
}
CWnd * pWnd=GetDigItem(IDC_RESULT);
ASSERT(pWnd);
if (pWnd)
pWnd->SetWindowText(szResult);
// TODO: Add your control notification handler code here}
}
这段代码谁能帮我改啊[em7][em10]
{
CString szChoice;
CString szResult;
int nChoice;
m_combolist.GetWindowText(szChoice);
if (nChoice !=CB_ERR)
{
m_combolist.GetLBText(nChoice,szChoice);
szResult="Closing after selecting"+szChoice;
}
else if (szChoice.IsEmpty()==TRUE)
{ szResult = "No Choice selectd";}
else if (m_combolist.FindStringExact(-1,szChoice)!=CB_ERR)
{ szResult="Closeing after selecting"+szChoice;}
else
{
m_combolist.AddString(szChoice);
szResult = "adding"+szChoice +"to List";
}
CWnd * pWnd=GetDigItem(IDC_RESULT);
ASSERT(pWnd);
if (pWnd)
pWnd->SetWindowText(szResult);
// TODO: Add your control notification handler code here}
}
这段代码谁能帮我改啊[em7][em10]