🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #446

Re: LS_QUERYITEMHANDLE

#446
From: Scott MEANS
Date: Sun, 08 Apr 1990 23:55
15 lines
1113 bytes
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
Technical Details
Message-ID: <54002@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!rex!samsung!uunet!microsoft!smeans
References: <1990Apr6.162441.8666@murdoch.acc.Virginia.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!rex!samsung!uunet!microsoft!smeans
From: smeans@microsoft.UUCP (Scott MEANS)
Newsgroups: comp.os.os2
Subject: Re: LS_QUERYITEMHANDLE
Message-ID: <54002@microsoft.UUCP>
Date: 8 Apr 90 23:55:13 GMT
References: <1990Apr6.162441.8666@murdoch.acc.Virginia.EDU>
Reply-To: smeans@microsoft.UUCP (Scott MEANS)
Distribution: usa
Organization: Microsoft Corp., Redmond WA
Lines: 15