Click to See Complete Forum and Search --> : Checkboxes


May 14th, 1999, 11:47 AM
Does anyone know how to put a different image in a check box when it is checked other than a tick?

I would like to have 1's and 0's instead.

Please email replies to ruth.oliver@anitesystems.com

Gautam N. Lad
May 23rd, 1999, 10:19 PM
1) Create a CButton derived class.
2) Create a member variable to store the state.
3) Use the OnPaint member to draw the bitmap.

I think you will have to create regular buttons
(not checkboxes) with the Ownerdrawn feature
enabled,in the resource editor if you want to use it...

Anywho..that's what I'd prolly do.

If you have trouble figuring out the code, e-mail me.

HTH!
Bye!