That is nasty! Even though documentation says it isd a macro, this is a side effect that I think should be documented. (I shunned away from these macros most of my time anyway, now more incentive to do soo...) I wonder: would the following definition would help: #define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_) \ { LV_ITEM _ms_lvi;\ _ms_lvi.iSubItem = iSubItem_;\ (_ms_lvi.pszText = pszText_,\ SNDMSG((hwndLV), LVM_SETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_ms_lvi));\ }
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify!|Fold With Us!