关于CListView和CListCtrl的问题,请帮帮忙。
我想用CListCtrl做个带图片的列表
给工程里添加了
Microsoft ListView Control, version 6.0
这个控件,对应的变量为m_ListViewCtrl
查了msdn看到这个方法:
CListView::GetListCtrl
CListCtrl& GetListCtrl( ) const;
Return Value
A reference to the list control associated with the view.
Remarks
Call this member function to get a reference to the list control associated with the view.
然后我就在代码里加了:
CListCtrl listCtrl1=m_ListViewCtrl.GetListCtrl();//这行出错了
listCtrl1.SetImageList (pImageList,LVSIL_NORMAL );
结果显示错误错误:
error C2039: 'GetListCtrl' : is not a member of 'CListView1'

