33,008
社区成员
发帖
与我相关
我的任务
分享
//the static callback function for your listctrl operation
// it could notify the main thread a message per every 100 items
LRESULT myfunc(LPVOID param)
{
CMyWnd* pWnd = (CMyWnd*)param;
//...
for(int i=1;i<=counts;i++)
{
pWnd->m_List.InsertItem(..);
//...
if(i%100 == 0)
postMessage(...,(WPARAM)i,0);
}
}