在要创建的地方 m_ListCtrl.Create(....) 注意父窗口一定要建立好了 MSDN: // pParentWnd is a pointer to the parent window. extern CWnd* pParentWnd; // The pointer to my list view control. extern CListCtrl* pmyListCtrl;pmyListCtrl->Create( WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT, CRect(10,10,400,200), pParentWnd, 1);在CListCtrl::Create里
m_ListCtrl.Create(....)
注意父窗口一定要建立好了
MSDN:
// pParentWnd is a pointer to the parent window.
extern CWnd* pParentWnd;
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;pmyListCtrl->Create(
WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT,
CRect(10,10,400,200), pParentWnd, 1);在CListCtrl::Create里
http://www.yangning.com/cgi-bin/topic.cgi?forum=1&topic=65&show=0