Home > Software engineering >  How to save the color after FillRect fill color?
How to save the color after FillRect fill color?

Time:10-17


I'm in a dialog, call FillRect put a static box filling for a particular color, this to be a problem, but after I switch to the other dialog to switch back, before filling the color didn't, how to do?

CodePudding user response:

From the CStatic derived a new class, oneself

CodePudding user response:

Put all the drawing function WM_PAINT message processing,

CodePudding user response:

Zhao four teachers, drawing operations should be in the response function of the WM_PAINT message

CodePudding user response:

"Take a static box filling for a particular color"
Also can do it in the dialog box OnPaint,

CodePudding user response:

Put your FillRect rendering graphics operation in CStatic class OnPaint function to do ~
  • Related