MFC中ListControl 怎么清空所有Item
发布网友
发布时间:2022-04-22 06:53
我来回答
共2个回答
热心网友
时间:2023-10-02 07:24
CListCtrl::DeleteAllItems
BOOLDeleteAllItems();
Return Value
Nonzero if successful; otherwise zero.
Example
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// Delete all of the items from the list view control.
pmyListCtrl->DeleteAllItems();
ASSERT(pmyListCtrl->GetItemCount() == 0);
热心网友
时间:2023-10-02 07:25
CListCtrl:DeleteAllItems()