News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

pszText of LV_ITEM appears empty on LVM_GETITEM!!!

Started by xandaz, June 16, 2011, 11:32:10 PM

Previous topic - Next topic

xandaz

   I was creating an ownerdrawn listview example but when i get the WM_DRAWITEM use [DRAWITEMSTRUCT].itemID only the iImage member seems to be fine. At first i was using the same LV_ITEM for ListView items filler and for WM_DRAWITEMSTRUCT and thought there was conflict but then i used two LV_ITEMs and nothing. I've been through this with and ownerdraw listbox example and had to allocate memory for as much strings as items and it worked but now i think that there must be another way. There has to be a reasonable explanation for this. Back then no one here could solve the problem and i followed Daves tip to allocate memory for the items. Can somone help me out?
   Thanks a lot and bye
   Laters
   X