troubleshooting Question

CCheckListBox Sizing problem

Avatar of kdullea3
kdullea3 asked on
Programming Languages-Other
4 Comments1 Solution485 ViewsLast Modified:
I've created a CCheckListBox through subclassing, but I set the default font to 12 point size for the dialog that the original listbox resides in.  The listbox is ownerdrawfixed and hasstrings.

When I populate the CCheckListBox everything seems to work until all the strings have been loaded and then I get an error in debug mode and it appears to have something to do with the minimum size of the items.

I can see the dialog on screen and all the strings are visible but the size of the checkbox is small (not the size I would expect for the 12 point font).

Since I have changed the default font size for this dialog do I need to implement an override of the measureitem method?  Just as a side note, if I set the dialog default font back to 8 point (the original setting) everything works fine.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros