Jump to content
Sign in to follow this  
devilyn

Listview Checkboxes on specific column

Recommended Posts

devilyn

Hello all,

i looking for a way to add check boxes to my listview on a different column (not index 0).

Thanks in advance

Lior.

Share this post


Link to post
Share on other sites
rover

Hello all,

i looking for a way to add check boxes to my listview on a different column (not index 0).

Thanks in advance

Lior.

not without customdrawing or ownerdrawing the listview with DrawFrameControl

like checkboxes, SetItemStateImage only sets first column state image

maybe use an imagelist with clear and checked checkbox icons

and detect subitem clicks to toggle icon state and check imagelist icon index used or set lparam of listview item to a value you could check toggle state of item.

(can't do that if using GUICtrlCreateListViewItem as AutoIt uses lparam of item to track listview items as faux controls, must use UDF listview Add/Insert item functions)

I don't have an example at hand, and haven't reviewed listview code to see if this is feasible.

check goggle or codeproject etc

search for LVS_EX_CHECKBOXES + subitem

good luck


I see fascists...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.