Hi,
I implement a list box which has items with variable height, to calculate height of item i need to obtain data attached with it in MeasureItem().
Here is part of code inserting item in list box
INT idx = m_lstBox.AddString(strTxt);
m_lstBox.SetItemDataPtr(idx, pData);
Problem is that MeasureItem() function is called when the string is added, and at that time, data pointer is still not be set so i got bad pointer as result of GetItemDataPtr inside MeasureItem().
How can I set data pointer before MeasureItem call?
Quy