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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generic question about CListCtrl 1

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
I usually use controls to make a ListCtrl object....it works fine, but I want to successfully make one from "scratch". This is what I have so far...but I'm not getting a ListCtrl in my dialog....I'm getting nothing. Can someone please tell me what's wrong with this?

CListCtrl *MatrixList;

MatrixList->Create(LVS_REPORT, CRect(10, 10, 100, 100), this->FromHandle(m_hWnd), 1);

I figgured that this would initialize and object and then attach it to my dialog box. But I'm doing something wrong. Thanks in advance for any help.

Niky Williams
NTS Marketing
 
Niky,

You have to construct the pointer before you can use it.

CListCtrl* MatrixList = new CListCtrl(...);

good luck
-pete
 
Ah...I see....I understand now! Thank you so much!

Niky Williams
NTS Marketing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top