Does SetBackgroundColour() on a button not apply in Windows 7?

Just want to get confirmation on this from others, because I am
developing on WinXP but tried some code on Windows 7 and whereas in XP
the button's background color is set, on Windows 7 it doesn't do
anything. I guess that's just the new OS's native behavior?

(I have not tested at all on Windows Vista, but would guess it is more
like Windows 7 in this regard).

I'm trying to make something like a bitmap toggle button, but a really
small one, and I feel the "toggled" visual effect isn't strong enough
at that size to provide the user good visual feedback, and so want to
change the background color. But I need a cross-platform/OS solution.
Maybe I'll resort to swapping the button's bitmap instead, but wanted
to check into this first.

Thanks,
Che

Yes, that is most likely. It also would not normally work on XP but when the bg color is set then wx puts the widget in owner-drawn mode and wx draws the button. It could be that the native button on Win7 does not allow owner-drawn mode or something like that.

···

On 10/29/10 10:33 AM, C M wrote:

Just want to get confirmation on this from others, because I am
developing on WinXP but tried some code on Windows 7 and whereas in XP
the button's background color is set, on Windows 7 it doesn't do
anything. I guess that's just the new OS's native behavior?

--
Robin Dunn
Software Craftsman