Click to See Complete Forum and Search --> : add a listview in a form
purusingh
Dec 3rd, 2002, 11:00 PM
just like in vb I want to add a listview in a form.How Can I do in vc++
CornedBee
Dec 4th, 2002, 09:05 AM
How much C++ do you know? How much WinAPI do you know? Have you heard about common controls? The list view is one of those. Once you know the basics of those three things (C++, WinAPI and common controls) it's relatively easy to add a list view control. But it's still not a simple drag&drop operation.
purusingh
Dec 4th, 2002, 08:48 PM
Thanks,U mean I have to use comm control.I thought that I have to use a class based on clistview.Any way thank u very much.
purusingh
Dec 8th, 2002, 10:00 PM
Are CListView and Listview same?Can we use CListView to add in dialog insted of listview(activex)?
CornedBee
Dec 9th, 2002, 01:34 AM
Huh? CListView is the MFC wrapper for the list view common control. It's a C++ class.
The Listview ActiveX is an ActiveX wrapper for the list view common control made for VB. Don't use it in C++, it's more work than it's worth.
So you're using MFC? Do you know the API well? If yes, then go with CListView. If not then don't use MFC.
CornedBee
Dec 9th, 2002, 01:40 AM
No.
CListView is an MFC control view class. This means the whole client area will be covered with the control. As opposed to CListCtrl, which is a simple control and has nothing to do with the MFC doc/view mechanism. Neither has anything to do with the ActiveX control Listview, which was created for VB and should be avoided in C++. CListCtrl and CListView both internally use the list view common control.
If any of this didn't make sense to you then you shouldn't use MFC but rather pure API...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.