Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CListCtrl

Status
Not open for further replies.

MahalKoCjet

Programmer
Mar 5, 2003
12
0
0
PH
Hi,

I'm using the CListCtrl class on my project and I'm trying to add an item on it.

Im using this syntax:
MyListCtrl.InsertItem(1,"Item 1");

But when I run my project there is no items added on my CListCtrl.

Why?, Can you please help me
 
You first have to insert headers for any columns that you wish to use.
i.e.

MyListCtrl..InsertColumn(0,"Column1",LVCFMT_LEFT,120);
john.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top