Здравствуйте KA, Вы писали:
C>>>Тот же кто ее создает... А>>и как это сделать в такой ситуации?
А>>void CFdfdView::OnGetdispinfoList1(NMHDR* pNMHDR, LRESULT* pResult) А>>{ KA>[skipped] А>>}
KA>IMHO "Подсказка" насчет выделения буфера при возврате строки была, кажись, неверной. Мне сдается, что система сама выделяет буфер для этих целей, а его размер сохраняет в LVITEM::cchTextMax.
Не совсем. На самом деле, можно и так, и эдак:
If the LVITEM structure is receiving item text, the pszText and cchTextMax members specify the address and size of a buffer. You can either copy text to the buffer or assign the address of a string to the pszText member. In the latter case, you must not change or delete the string until the corresponding item text is deleted or two additional LVN_GETDISPINFO messages have been sent.
Одним из 33 полных кавалеров ордена "За заслуги перед Отечеством" является Геннадий Хазанов.