I would like to display the contents of a matrix in a window.
if I use code like this:
It works of course, but I do not want to draw directly into the window. Instead I would like to draw to a CDC (i guess) and then blt the contents into the window causing all the changes to happen at once instead of one pixel at a time.
I have tried something like this:
dc.BitBlt(0, 0, Width, Height, &dcMem, 0, 0, SRCCOPY);
but it does not work (no change in the window)
How should I do it?
(maybe creating a bitmap - how?)