Editbox to Listbox
-
good day, is it possible to display the values/result from the editbox to the listbox? by how? m_list.???
-
good day, is it possible to display the values/result from the editbox to the listbox? by how? m_list.???
CEdit::GetWindowText()
andCListBox::AddString()
should help you.It is a crappy thing, but it's life -^ Carlo Pallini
-
CEdit::GetWindowText()
andCListBox::AddString()
should help you.It is a crappy thing, but it's life -^ Carlo Pallini
what is the exact code to get the value of the editbox (variable type double) and displays in the listbox? i tried : m_list.GetText(m_list.GetCurSel(), m_edit1) but after building committed errors... please help.
-
what is the exact code to get the value of the editbox (variable type double) and displays in the listbox? i tried : m_list.GetText(m_list.GetCurSel(), m_edit1) but after building committed errors... please help.
Instead of having the variable type as double, I'll recommend that you have it as a control variable, and call
m_Edit.GetWindowText()
and then convert it to a number with_ttol()
or_ttoi()
, etc.,It is a crappy thing, but it's life -^ Carlo Pallini
-
Instead of having the variable type as double, I'll recommend that you have it as a control variable, and call
m_Edit.GetWindowText()
and then convert it to a number with_ttol()
or_ttoi()
, etc.,It is a crappy thing, but it's life -^ Carlo Pallini
can u please give me some sample code of it? i dont know how to use tt01() or ttoi? please help...
-
Instead of having the variable type as double, I'll recommend that you have it as a control variable, and call
m_Edit.GetWindowText()
and then convert it to a number with_ttol()
or_ttoi()
, etc.,It is a crappy thing, but it's life -^ Carlo Pallini
thank you my code is runnig now i just change it to control and use getwindowtext. thank you very much neil