摘自afxcview.inl文件:// NOTE: The cast in GetListCtrl is ugly, but must be preserved for compatibility. // CListCtrl is not related to CListView by inheritance so we must be careful to ensure // that CListCtrl remains a binary compatible subset of CListView. _AFXCVIEW_INLINE CListCtrl& CListView::GetListCtrl() const { return *(CListCtrl*)this; }
// CListCtrl is not related to CListView by inheritance so we must be careful to ensure
// that CListCtrl remains a binary compatible subset of CListView.
_AFXCVIEW_INLINE CListCtrl& CListView::GetListCtrl() const
{ return *(CListCtrl*)this; }
控件不支持文档/视,拖动等特性,clistview比clistctrl多了这些特性。
clistview是一种view,比如你在单文档或多文档程序中可以继承自clistview,而clistctrl 是个控件类