Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!ntvaxb!ie15 From: ie15@vaxb.acs.unt.edu Newsgroups: comp.os.os2.programmer Subject: Re: HELP!!! OWNERDRAW hItem Message-ID: <33584.26dfbad5@vaxb.acs.unt.edu> Date: 1 Sep 90 13:42:45 GMT References: <1990Aug2.135426.23195@arnor.uucp> <953@metapyr.UUCP> Lines: 20 In article <953@metapyr.UUCP>, marc@metapyr.UUCP ( The Karate Kid ) writes: > > 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. > I haven't an answer since I've yet to work own owner draw stuff yet. However, the IBM Programmer's Toolkt has a great example of an ownerdraw listbox in the sample program that shows Extended Attributes. The filepath is: x:\toolkt12\c\samples\bse\ealist\ealist.c If you hack thru it long enough you should be able to figure out what you need. Ken Tabor University of Noth Texas