Check box in column header of a CListCtrl.
-
Hi, I am using a CListCtrl with check boxes for the row (using LVS_EX_CHECKBOXES). Now, my requirement is to use check box in column header of the CListCtrl so that I can "Select All" or "Deselect All" items in list on a single click. Any help would be appreciated. Regards, Paresh.
-
Hi, I am using a CListCtrl with check boxes for the row (using LVS_EX_CHECKBOXES). Now, my requirement is to use check box in column header of the CListCtrl so that I can "Select All" or "Deselect All" items in list on a single click. Any help would be appreciated. Regards, Paresh.
Don't mind me, but I do that by placing a button control just under CListCtrl and I place icon (looking like checked box) on it and add some code on 'OnClick' member where I loop through list and set each row as checked. Add another icon button for deselecting all rows. Glad if I could help!
-
Hi, I am using a CListCtrl with check boxes for the row (using LVS_EX_CHECKBOXES). Now, my requirement is to use check box in column header of the CListCtrl so that I can "Select All" or "Deselect All" items in list on a single click. Any help would be appreciated. Regards, Paresh.
-
Don't mind me, but I do that by placing a button control just under CListCtrl and I place icon (looking like checked box) on it and add some code on 'OnClick' member where I loop through list and set each row as checked. Add another icon button for deselecting all rows. Glad if I could help!
Thanks for your prompt reply. I am seeking an easier solution for this. Regards, Paresh.
-
Thanks for your prompt reply. Regards, Paresh.
-
Thanks for your prompt reply. I am seeking an easier solution for this. Regards, Paresh.
Paresh Chitte wrote:
I am seeking an easier solution for this.
What's hard about that? It seemed easy and straight forward to me.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, I am using a CListCtrl with check boxes for the row (using LVS_EX_CHECKBOXES). Now, my requirement is to use check box in column header of the CListCtrl so that I can "Select All" or "Deselect All" items in list on a single click. Any help would be appreciated. Regards, Paresh.