-
BitBlt()
Hello
I am using double buffering specifically BitBlt(). Over my offscreen buffer I draw other windows (trackbar, input box, button) I am quite surprised that this works because it never worked before in my previous appz.
The problem is that when the window is redrawn completely (If i move my track bar or another windows moves over the first one) all the other windows disappear. They simply get overdrawn but dont redraw themselves on top. To redraw even those child windows I need to resize the original window
What shall I do in this case when I use BitBlt()?
Thank you for help
-
can you show me your screenshot?
-
I have solved it now
Just for record...
http://www.funbox.wz.cz/data/graph.jpg
I just shifted the BitBlt() drawing a bit so it does not cover the other windows. Now there is no flickering when resizing... And the other windows do not disappear under the offscreen drawing.
Code:
BitBlt(hDC, 170, 15, _pProg->GetMaxSize().x, _pProg->GetMaxSize().y, hOffScreenDC, 170, 15, SRCCOPY);
The window on the left is static... Now I am trying to put some text over the static window. No success yet with it...