Jump to content

Listview Checkboxes on specific column


Recommended Posts

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...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...