CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Posts
    34

    Images in ListBox / Owner-drawn LB

    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 ?


  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: Images in ListBox / Owner-drawn LB

    Bryan Stafford Shows How To Make One On His Site
    http://www.mvps.org/vbvision/grouped...box_&_Combobox
    Have a look at the virual listbox demos
    Should help you


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured