古詩詞大全網 - 成語查詢 - VC如何把List中的內容全部清空

VC如何把List中的內容全部清空

CListBox::ResetContent

void ResetContent( );

Remarks

Removes all items from a list box.

Example

// The pointer to my list box.

extern CListBox* pmyListBox;

// Delete all the items from the list box.

pmyListBox->ResetContent();

ASSERT(pmyListBox->GetCount() == 0);