Link to home
Start Free TrialLog in
Avatar of AsifMughal
AsifMughal

asked on

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

Asif
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naveenkohli
naveenkohli

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

http://www.codeguru.com/atl/atlsuperclasswnd.shtml
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.