Little Design Problem :)
Posted: November 23rd, 2017, 2:03 pm
Hi there!
I have a little problem and maybe someone can help
So, I have a window class, and a gfx class that has an reference to a window, to draw to. But now I need also a reference of the gfx in window, because in WM_PAINT I want to redraw the screen (I use GDI to make a backbuffer and blt it). I just want to do that, because I get some flickering and have read that it could be a solution. Should I make the gfx class a nested class of window? Or do you have other recommendations? I hope I explained my situtation well
Thanks in advance!
I have a little problem and maybe someone can help
So, I have a window class, and a gfx class that has an reference to a window, to draw to. But now I need also a reference of the gfx in window, because in WM_PAINT I want to redraw the screen (I use GDI to make a backbuffer and blt it). I just want to do that, because I get some flickering and have read that it could be a solution. Should I make the gfx class a nested class of window? Or do you have other recommendations? I hope I explained my situtation well
Thanks in advance!