Home > Software engineering >  Excuse me, how to dynamically modify the color of the button in the MFC button
Excuse me, how to dynamically modify the color of the button in the MFC button

Time:10-12

The first kind of circumstance: is press the button and the up button color is not the same,
The second case, press and bounce the button press and obviously up style, how to do?

CodePudding user response:

CButtonST

CodePudding user response:

CBitmapButton can load different bitmaps

CodePudding user response:

From the CButton derived a new class, add processing DrawItem virtual functions, the MSDN examples of DrawItem can refer to a while,

CodePudding user response:

Has been using CButtonST

CodePudding user response:

Response message, the different images

CodePudding user response:

This use XBtn_Create dazzle colour will be much more convenient, can set a lot of kinds of state
  • Related