[comp.os.os2] LS_QUERYITEMHANDLE

smeans@microsoft.UUCP (Scott MEANS) (04/09/90)

I think the problem here is that there is some misunderstanding about the 
purpose of item handles in a listbox.  An item handle is just a way to 
associate an arbitrary ULONG value with a specific item in a listbox.  In 
your example you would first send the LM_INSERTITEM and then immediately 
send LM_SETITEMHANDLE with the item number you got from LM_INSERTITEM and 
the address of the structure you want to attach to the item.  Then later 
when you want to retrieve the address of the structure that goes with a 
given item you just send the LM_QUERYITEMHANDLE message with the proper
iItem.

-- 
     /\/\
    //\/\\
    \>  </
   S/    \eans