Original Post
Hi, I have basically this state machine deciding what background image to draw to my window. My code is here: http://codepad.org/wCRPZA8l
The correct state is getting to WM_PAINT, and it is entering the correct if statement, but after the initial run through where it draws hydra.jpg, it wont draw any of the new bitmaps. On subsequent calls it runs the lines
Bitmap bitbackhydra(L"slave.jpg");
windowgraphics.DrawImage(&bitbackslave, drawspace);
But the image never appears, and hydra.jpg stays on the screen, meaning:
windowgraphics.Clear(Color::White);
Is not even being executed, even though i can see through debugging it passes over this line...
Any help would be great! thanks!
The correct state is getting to WM_PAINT, and it is entering the correct if statement, but after the initial run through where it draws hydra.jpg, it wont draw any of the new bitmaps. On subsequent calls it runs the lines
Bitmap bitbackhydra(L"slave.jpg");
windowgraphics.DrawImage(&bitbackslave, drawspace);
But the image never appears, and hydra.jpg stays on the screen, meaning:
windowgraphics.Clear(Color::White);
Is not even being executed, even though i can see through debugging it passes over this line...
Any help would be great! thanks!