does anyone know whether the lParam parameter of the LB_INITSTORAGE
message specifies the number of bytes to allocate for one item or the
number of bytes to allocate for all items? The docs are not clear about
this.
Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."
lParam is the number of bytes PER ITEM.
You are right that the docs for LB_INITSTORAGE are unclear, but the
doc page for CListBox::InitStorage has an example that clarifies this.
> lParam is the number of bytes PER ITEM.
>
> You are right that the docs for LB_INITSTORAGE are unclear, but the
> doc page for CListBox::InitStorage has an example that clarifies this.
I think this sample is wrong.
By reading LB structure in GetWindowLongPtr(hListbox, 0), before and
after LB_INITSTORAGE, it seems to allocate lParam and not
wParam*lParam...
Thanks