I've been researching the Windows primitive GDI 2D graphics, but I can't figure out what the code shall look like.
Where shall the painting be done? Inside the message handler? Probably not, but then where? And what shall then be done in the message handler concerning painting?