When handling the WM_PAINT message, I omitted the BeginPaint and EndPaint calls, and the CPU usage shot up to 100%. Why is this?
I'm also using worker threads... but they do something different and seem to have no influence on this matter.
Also, can I use the device context from GetDC() rather than BeginPaint? They seem to have different values so I thought they had different jobs.
Sorry if I sound like an idiot - I'm new to WinAPI, C++ and just the world of logic in general...
Thanks