How to Draw Checkbox in ListView OwnerDraw

T

tmda

I'm using OwnerDraw for some customization in my ListView - adding
color to item backgrounds. I'm using the ListView specifically for
it's OwnerDraw capability. I originally was using the CheckedListBox
control but it has no OwnerDraw. I have not found a way to draw the
checkboxes while using OwnerDraw (the checkboxes appear correctly when
not using OwnerDraw). How can this be done? It would be nice if there
were something similar to e.DrawText().... like e.DrawCheckbox(). Oh,
and I'm using Visual Studio 2005 (Framework 2.0), which has an
OwnerDraw for ListView (older versions do not).

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top