Overriding graphic aspect of treeview checkbox

M

metalseb

Hi there

Just wondering if there is any way to change the bitmap displayed by a
checkbox inside a treeview by some bitmaps of mine, loaded in an imagelist
for example. Any help would be greatly appreciated if this kind of thing is
possible.
 
C

Claes Bergefall

The images are contained in the state image list
where index 1 is the unchecked image and index 2
is the checked one. You can replace the images
(or the entire list) with whatever you want. See
TVS_CHECKBOXES for more info.

You'll need to use P/Invoke

/claes
 

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