I'm trying to build an owner-drawn check box using CButton, but since I only want to change the text color, I'd like the check-box marks to remain the same.
Is there a command that allows me to retrieve the default check box bitmaps for the platform where the program is running?
(alternatively: how could I change only the text color, preserving the check box marks?)
I use UxTheme.dll to draw my custom checkbox.
First I draw the check-box marks using: DrawThemeBackground passing it a modified rect (checkboxRect.right = pCustomDraw->rc.left + 15;)
And then I draw the text by myself using ::DrawText.
I hope it helps.