Home > Software engineering >  Inquire how to change the C form background color
Inquire how to change the C form background color

Time:11-02


Is this interface doesn't want to gray, but can change the color,

CodePudding user response:

How to make the color of the controls become transparent,,,,,,,,,

CodePudding user response:

Base class CDialog modified to CDialogEx, CDialogEx: : SetBackgroundColor

Or handle WM_CTLCOLOR

CodePudding user response:

refer to the second floor zgl7903 response:
base class CDialog modified to CDialogEx, CDialogEx: : SetBackgroundColor

Or handle WM_CTLCOLOR

Changed background I will, but change controls for transparent or not, can you explain, thank you,
PS: instead of transparent like a a set or set up a good,

CodePudding user response:

custom painting realize the translucent crystal button

CodePudding user response:

http://www.cnblogs.com/lidabo/archive/2012/07/17/2594843.html

CodePudding user response:

OnPaint changes inside the
CPaintDC dc (this);//device context for painting
CRect the rect.
GetClientRect (the rect);
Dc. FillSolidRect (the rect, RGB (156170193));//set for the green background
  • Related