This is for a listVIEW control, but it includes time-tested drawing of checkboxes...
Listview with Multiple Checkbox Columns Demo 2-20-05
Announcement
Collapse
No announcement yet.
Listbox with Checkbox
Collapse
X
-
WM_DRAWITEM is handled wrong, read: not handled.
A common mistake
Leave a comment:
-
Bob, thanks, but I just reworked the layout and added the toggle check and get check. Someone far more capable created the basic functionality.
Leave a comment:
-
The benefit for me was in the subclassing and ownerdrawing that was cleanly demonstrated. I've been pretty weak in both areas.
Bob Mechler
Leave a comment:
-
I think you are referring to this....
Not that this isn't a nice example of owner-drawing, but wouldn't a ListVIEW control with Style LVS_EX_CHECKBOXES be an easier way to accomplish the same thing?
No subclassing, no owner-draw. Of course, owner-drawing may have been the purpose of the demo.
MCM
Leave a comment:
-
Listbox with Checkbox
Dean,
Thanks for the a nice subclassing of a listbox example with checkbox in the source code area. Very clear presentation.
Bob MechlerTags: None
Leave a comment: