Skip to content

Instantly share code, notes, and snippets.

@caiodanielnunessantos
Created June 21, 2020 21:51
Show Gist options
  • Save caiodanielnunessantos/90e5ea27ae79fbc462db6c598633286c to your computer and use it in GitHub Desktop.
Save caiodanielnunessantos/90e5ea27ae79fbc462db6c598633286c to your computer and use it in GitHub Desktop.
class Circle {
// Várias coisas...
HDC drawing;
MakeDrawing(HDC hdc) {
CreateCompatibleDC(hdc);
Ellipse(hdc, /*Args...*/);
}
Paint(HDC hdc) {
SelectObject(hdc, drawing);
BitBlt(hdc, /*Args...*/, SRCCOPY);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment