Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The problem is the default implementation of CCheckListBox is broken. The sizes are wrong for the rows so it draws the contents of the list box wrong. I have written a replacement that works correctly. I noticed that mine is not quite a drop-in replacement yet so I am working on tweaking some things now so it soon will be.

My question is does anyone know of an implementation of CCheckListBox for MFC that works correctly? I am asking because I will just use that instead if it works correctly and is a true drop-in replacement. Otherwise, I will continue my work and eventually post it here. I spent quite a bit of time at google searching and couldn't find anything. I found one in plain C/Win32-SDK here and it works well but it's not MFC. I based my work on it and am now extending it a bit.

What I have tried:

Searching for alternatives and I am now writing my own.
Posted
Comments
KarstenK 23-Dec-17 4:41am    
Tip: search in the codeproject articles. Some gems are waiting to be found ;-)
Rick York 26-Dec-17 13:09pm    
Thanks Karsten. I looked and didn't find what I am looking for. As I wrote previously, I found one here that works well but it is in straight C. I am adapting it now for MFC since I can't find anything else that is.
Rick York 29-Jun-20 21:13pm    
My answer was to avoid using the CCheckListBox class entirely. I use a list control derivative and place a check box in the first column. This draws correctly so it's all good.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900