Path: utzoo!attcan!uunet!cs.utexas.edu!yale!ox.com!metapyr!marc From: marc@metapyr.UUCP ( The Karate Kid ) Newsgroups: comp.os.os2.programmer Subject: HELP!!! OWNERDRAW hItem Summary: how do you access the hItem for an OWNERDRAW listbox? Keywords: LISTBOX, PM, OWNERDRAW Message-ID: <953@metapyr.UUCP> Date: 3 Aug 90 16:13:26 GMT References: <1990Aug2.135426.23195@arnor.uucp> Reply-To: marc@metapyr.UUCP (Marc Paige - The Karate Kid ) Organization: Meta Systems, Ltd. -- Ann Arbor, MI Lines: 18 Let the gods be favorable and someone answer my plea... I have a LS_OWNERDRAW styled list box and have yet to figure out the method of drawing text in response to the WM_DRAWITEM message for this listbox. The books don't help at all. The only clue is that the hItem part of the OWNERITEM structure "specifies an application-defined item handle" (pg 512 of Volume 2, Micorsoft OS/2 Programmer's Ref.) I've tried to pass a pointer to a string, pointer to a structure that contains a string but to no avail. Has anyone had success in this quandry? I just want to know what to pass as the mp2 of the LM_INSERTITEM message. Thanks in advance. Marc Paige ---------------------------------------------------------------------------- "tired and shagged out from a prolonged squawk" - mpfc the parrot sketch