| title | CListView Class | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | reference | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | 7626bdb2-a1b8-4eab-b631-6743710a8432 | |||||||||||||
| caps.latest.revision | 24 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Simplifies use of the list control and of CListCtrl, the class that encapsulates list-control functionality, with MFC's document-view architecture.
class CListView : public CCtrlView
| Name | Description |
|---|---|
| CListView::CListView | Constructs a CListView object. |
| Name | Description |
|---|---|
| CListView::GetListCtrl | Returns the list control associated with the view. |
| Name | Description |
|---|---|
| CListView::RemoveImageList | Removes the specified image list from the list view. |
For more information on this architecture, see the overview for the CView class and the cross-references cited there.
CListView
Header: afxcview.h
Constructs a CListView object.
CListView();
Call this member function to get a reference to the list control associated with the view.
CListCtrl& GetListCtrl() const;
A reference to the list control associated with the view.
[!code-cppNVC_MFCListView#7]
Removes the specified image list from the list view.
void RemoveImageList(int nImageList);
nImageList
The zero-based index of the image to remove.
MFC Sample ROWLIST
CCtrlView Class
Hierarchy Chart
CCtrlView Class