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, oneselfCodePudding 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 messageCodePudding 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 ~