Separating list box items by horizontal lines

Hello All

I am wondering whether it is possible to separate entries in a list box by horizontal lines.

I look forward to a reply.

Best Regards

Who is Participating?
chensuConnect With a Mentor Commented:
Create an owner-draw list box or simply use underscore "_______" or minus sign "-------".
Look at this article on codeguru... its exactly what you are looking for. I has been written using ATL but you can modify it to use it for ownerdraw listbox in MFC

Superclassed Ownerdrawn Standard Windows Control Using ATL
Why you don't just use a List Control instead of a list box?

With a List Control you can easyly add horizontal or vertical lines to separate the list items.

All Courses

From novice to tech pro — start learning today.