April 17th, 2013, 03:18 AM
During the first call of Display()
int nItem = ctlRightView.GetItemCount();
this one returns 0
int index = ctlRightView.InsertItem(nItem, league);
this also return 0
April 17th, 2013, 02:10 AM
this is not working Mr.Victor
void CRightView::Display(const CAtlString league)
CListCtrl &ctlRightView = this->GetListCtrl();
April 9th, 2013, 05:13 AM
yeah i am getting your point but the thing is the first text it is getting displayed in index 0
nItem = ctlRightView.InsertItem(0, league);
and while the second text is coming how do i increment...
April 9th, 2013, 04:46 AM
Victor, thats where im stuck i dont know to proceed further pls help me. like rather than overwriting the former text i need to move the former text to second row first column and new text to first...
April 9th, 2013, 02:51 AM
2Kuad thanks for ur reply ... the resToken in the displaytext() i forgot to remove it let it b unused. And i hav stopped calling InsertItem function every time ratrher i have put that piece of code...
April 9th, 2013, 12:49 AM
Let me explain you. In the sendtext() i open a text file which consists of some data with delimiters like man-woman so after opening i tokenize it and the tokenized output is resToken which is sent...
April 8th, 2013, 06:50 AM
Hi! this is the complete code which i hav done untill now
CTreeCtrl& trCtrl = GetTreeCtrl();
CExerciseDoc *pDoc = GetDocument();
April 8th, 2013, 06:04 AM
Thanks for ur reply :) ...
pView is the listview pointer used for sending the data from treeview to list view.
Nope display text is not a global function. It is a local function where we display...
April 8th, 2013, 05:27 AM
I am doing an project in SDI. I have two functions name sendtext(CString str) and displaytext(CString inr) both in different class. I have a pointer name pView to send the string str to function...