i have created a listbox and a button to to add items to the listbox (MFC)
i have added a variable (m_ctlListBox) to the listbox control
but im getting an error, what im i doing wrong?
Error message
Code:error C2039: 'AddString' : is not a member of 'CListCtrl' 1> c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxcmn.h(258) : see declaration of 'CListCtrl'
my code
[code]
CString strText;
UpdateData();
strText = m_txtListbox;
UpdateData(FALSE);
m_ctlListBox.AddString(strText);
/[code]




Reply With Quote