https://bugs.winehq.org/show_bug.cgi?id=44633
--- Comment #4 from ryampolsky@yahoo.com --- ... and by the way, the code here returns NULL_BRUSH on WM_CTLCOLORSTATIC, but in my original Windows program I was returning a background color brush. When I do that in WINE, the checkbox text doesn't show up with or without a theme enabled.
But in Windows it does show up.
So I suspect Windows is clipping the background rectangle to the width of the label text, and WINE is not doing that when a theme is enabled. When no theme is enaabled, WINE may or may not be clipping the text - since it's honoring the NULL_BRUSH, it's hard to tell.
But the reason I was NOT sending a NULL_BRUSH originally was that at one point the focus rectangle on these controls was remaining inverted after the control lost focus. I had originally hoped that NULL_BRUSH would allow themed checkboxes to be drawn over a gradient background, but Windows does not respect NULL_BRUSH when drawing themed check/radio buttons. And since that didn't work, I was playing it safe with a real brush - just in case the focus rectangle problem was still there. Too much information, right> ;-)