Skip to content

Latest commit

 

History

History
103 lines (65 loc) · 2.59 KB

clistview-class.md

File metadata and controls

103 lines (65 loc) · 2.59 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: CListView Class
CListView Class
11/04/2016
CListView
AFXCVIEW/CListView
AFXCVIEW/CListView::CListView
AFXCVIEW/CListView::GetListCtrl
AFXCVIEW/CListView::RemoveImageList
CListView [MFC], CListView
CListView [MFC], GetListCtrl
CListView [MFC], RemoveImageList
7626bdb2-a1b8-4eab-b631-6743710a8432

CListView Class

Simplifies use of the list control and of CListCtrl, the class that encapsulates list-control functionality, with MFC's document-view architecture.

Syntax

class CListView : public CCtrlView 

Members

Public Constructors

NameDescription
CListView::CListViewConstructs a CListView object.

Public Methods

NameDescription
CListView::GetListCtrlReturns the list control associated with the view.

Protected Methods

NameDescription
CListView::RemoveImageListRemoves the specified image list from the list view.

Remarks

For more information on this architecture, see the overview for the CView class and the cross-references cited there.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CView

CCtrlView

CListView

Requirements

Header: afxcview.h

CListView::CListView

Constructs a CListView object.

CListView(); 

CListView::GetListCtrl

Call this member function to get a reference to the list control associated with the view.

CListCtrl& GetListCtrl() const; 

Return Value

A reference to the list control associated with the view.

Example

[!code-cppNVC_MFCListView#7]

CListView::RemoveImageList

Removes the specified image list from the list view.

voidRemoveImageList(int nImageList);

Parameters

nImageList
The zero-based index of the image to remove.

See also

MFC Sample ROWLIST
CCtrlView Class
Hierarchy Chart
CCtrlView Class

close