Click to See Complete Forum and Search --> : Images in ListBox / Owner-drawn LB


Vikktor
May 7th, 2001, 12:51 AM
Hi

I've tried to make some LB subclassing. I have found in the MSDN a C++ - written code for this (creating an owner-drawn ListBox) and tried to translate it to VB (my first attempt at this stuff, but the code seemed simple or so it is). So, the WM_PAINT, WM_MOUSEMOVE and other such "simple" events were successfully trapped. But when it came to the most important - WM_DRAWITEM, which draws the items along with each one's picture,... it was not trapped. What happened ?
Please, can anyone help with this stuff ? It's really frustrating. Why exactly the WM_DRAWITEM ?

TH1
May 7th, 2001, 10:20 AM
Bryan Stafford Shows How To Make One On His Site
http://www.mvps.org/vbvision/grouped_demos.htm#Listbox_&_Combobox
Have a look at the virual listbox demos
Should help you