Home > Software engineering >  Could you tell me how to fill in function MFC graphics and then inside the OnPaint execution
Could you tell me how to fill in function MFC graphics and then inside the OnPaint execution

Time:09-18



As title, Tank is a class, the show is a function of this class, I want to draw the tanks in this function, and then calls the function on the OnPaint, but I don't know how to fill, excuse me, what should I do

CodePudding user response:

Inside the onpaint create good dc and then passed to the function, but the function must be static function

CodePudding user response:

See my black and white, just understand

CodePudding user response:

To the inside of the onpaint CPaintDC dc to your custom function is ok, then you can use the dc to draw it
  • Related