Having adapted my program to using malloc instead of direct allocation, I have this strange, unexpected problem. Without even touching these Windows elements, suddenly, BitBlt stopped working...