CListCtrl
I want to insert an item into a list ctrl from another thread. I am passing in the hwnd for the ctrl to the thread, but i can't figure out the message to send using SendMessage() in order to insert the item.
Any ideas guys ?
# 3 Re: CListCtrl
Found a macro that takes care of it
LVITEM lvi;
lvi.pszText = (LPSTR)s.GetBuffer();
lvi.iItem = 0;
lvi.mask = LVIF_TEXT;
ListView_InsertItem(pt->hwndListCtrl, &lvi);