My program is basically a level editor for a game I'm working on, and whenever I scroll the map, it flickers and I can see things being drawn. I know that this is because I need to create a dc in memory, draw to that, and then blt that to the main dc.
I tried using CMemoryDC and CreateCompatibleDC(), but I can't figure out how to create a DC in memory the same size as the main dc. Any suggestions would be appreciated...