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 ?
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 ?