Roger Garrett
2005-11-16 18:27:53 UTC
I have a checkbox on a dialog and I want the background portion of it (i.e.
around the outside of the checkbox and behind the text label) to be
transparent so that the underlying color of the dialog shows through.
I handle the dialog's OnCtlColor method and return a hollow brush.
This works just fine for plane old CButtons as well as for the radio button
type of CButton. But it does not work for the checkbox type of CButton. The
checkbox type buttons come up all black, except for the actual checkbox
itself.
What magic do I have to do in order to get it to work for checkboxes?
Roger Garrett
around the outside of the checkbox and behind the text label) to be
transparent so that the underlying color of the dialog shows through.
I handle the dialog's OnCtlColor method and return a hollow brush.
This works just fine for plane old CButtons as well as for the radio button
type of CButton. But it does not work for the checkbox type of CButton. The
checkbox type buttons come up all black, except for the actual checkbox
itself.
What magic do I have to do in order to get it to work for checkboxes?
Roger Garrett