For the code below, it will not be able to clear all ListBox string.
int c= m_list.GetCount ();
for(int k=0;k<c;k++)
m_list.DeleteString (i);
The problem is that the index will become 0 ~ n-1 (not 1 ~ n) after you delete index 0. You need to modify the code below to make the task success.
int c= m_list.GetCount ();
for(int k=0;k<c;k++)
m_list.DeleteString (
0);
沒有留言:
張貼留言