|
-
April 9th, 2013, 03:01 AM
#10
Re: String passing between functions in VC++ SDI application
 Originally Posted by maxer
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 in OnInitialUpdate function but still i face the same prob i have incremented the nItem using this am i right here
Code:
int nItem;
nItem = ctlRightView.InsertItem(0, league);
nItem++;
How many time else it should be repeated until you uderstand that you just overwrite your previous text because you set your new text in the same place: in the first column of the first row of your listview!
If you just moved this code into OnInitialUpdate that it would executed only once and nothing could be updated!
Now eplain, please, what you mean by "i have incremented the nItem using this"? What for haveyou incremented the nItem if you then do NOT use it at all?
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|