Clistbox
-
Hi guys, I would appreciate if someone could tell me "How to add selected item from one listbox to another"? I have 2 list boxes. While I execute my application, I select some items from one and some from another. Now, if one data item is not in another, I want to add that item to the list box. Thanks in advance C++Prog
-
Hi guys, I would appreciate if someone could tell me "How to add selected item from one listbox to another"? I have 2 list boxes. While I execute my application, I select some items from one and some from another. Now, if one data item is not in another, I want to add that item to the list box. Thanks in advance C++Prog
like this CString str; m_ListBox1.GetText(m_ListBox1.GetCurSel(),str); m_ListBox2.AddString(str);//or InsertString_**
**_
whitesky
-
like this CString str; m_ListBox1.GetText(m_ListBox1.GetCurSel(),str); m_ListBox2.AddString(str);//or InsertString_**
**_
whitesky
Thanks for your great help..but I don't know it is giving me errors like: left of '.GetText' must have class/struct/union type Thanks again C++Prog
-
Thanks for your great help..but I don't know it is giving me errors like: left of '.GetText' must have class/struct/union type Thanks again C++Prog
Preeti9 wrote:
left of '.GetText' must have class/struct/union type
Which is telling you that
m_ListBox1
must be aCListBox
object.
"The largest fire starts but with the smallest spark." - David Crow
-
Preeti9 wrote:
left of '.GetText' must have class/struct/union type
Which is telling you that
m_ListBox1
must be aCListBox
object.
"The largest fire starts but with the smallest spark." - David Crow
Thanks I got it C++Prog