Home > Software engineering >  Setting the color of the Radio Button to select the MFC
Setting the color of the Radio Button to select the MFC

Time:11-18

I am using vs2008mfc, now I want to make radio button failure indicator, normal point is green, with fault is red, but I find for a long time did not change the color of the is only the default blue may not be able to change?

CodePudding user response:

You can get a few pictures of different styles, and then use the CBitmapButton class objects associated your window object,

CodePudding user response:

reference 1/f, 7-eleven's response:
you can get a few pictures of different styles, and then use the CBitmapButton class objects associated with your window object,

A radio is so really can't change color, well, that I can only give up, do what you say, thank you.

CodePudding user response:

After add BS_OWNERDRAW style, custom painting

CodePudding user response:

Not to switch to other controls such as CStatic (picture)

CodePudding user response:

CStatic more usable (picture)

CodePudding user response:

It is best with their own data structures
  • Related