2018年1月2日 星期二

[MFC] DeleteColumn, Delete all of the columns. (MSDN is wrong)




void  CdlgErrorcode::ClearListCtrl_ERRORCODE(IN CListCtrl *pListCtrl)
{

pListCtrl->DeleteAllItems();
while (pListCtrl->DeleteColumn(0));
return;
}





MSDN上的solution 有問題


https://msdn.microsoft.com/zh-tw/library/75edh5fy.aspx

沒有留言:

張貼留言