Re: LISTVIEW_SetItemCount without LVS_OWNERDATA
2 Feb
2003
2 Feb
'03
10:55 p.m.
On February 2, 2003 05:46 pm, Duane Clark wrote:
+ infoPtr->nItemCount = nItems;
We should have infoPtr->nItemCount correct at the end of every iteration through the loop, otherwise we get into problems if we run out of memory, and we exit the look early:
+ if ( !(lpItem = (ITEM_INFO *)COMCTL32_Alloc(sizeof(ITEM_INFO))) ) + return 0;
-- Dimi.
8350
Age (days ago)
8350
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dimitrie O. Paun