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 functionCodePudding user response:
See my black and white, just understandCodePudding 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