August 29th, 2011, 04:11 PM
Thanks! That worked a charm!
Sorry about the duplicate threads. My first thread was about a screen capture, and the second was more specific.
Again, sorry about the duplicate threads.
August 29th, 2011, 03:22 PM
How do you know when Invalidate(true) is done? (yeah, I know, the screen has been updated).
The problem that I'm having is this code:
August 29th, 2011, 03:10 PM
I just wanted to follow up.
This isn't my posting, but this is exactly the same problem that I'm having:
August 29th, 2011, 02:55 PM
I've got a screen capture method that captures the screen and saves to a BMP but it seems slow. That is to say, it works fine for the first 2 screen capture events but for the next 2 it doesn't...
August 29th, 2011, 12:05 PM
Okay, so I'm beginning to get this. I was drawing outside of OnDraw / UpdateDialog. It just seemed like I was creating (and setting) a ton of global flags for what should be drawn in UpdateDialog....
August 29th, 2011, 11:43 AM
That seems to be the case.
In essence, then, the 'correct' way to draw in MFC is ALWAYS on Invalidate(TRUE), yes?
Though, my OnDraw just calls UpdateDialog(pDC);
Never draw outside of...
August 29th, 2011, 10:25 AM
I'm pretty sure I'm drawing to the right window. I've also tried
pDC = GetWindowDC();
with the same problems.
How would I know if I'm drawing to the wrong window? It seems to be the same...
August 29th, 2011, 09:49 AM
I have an app with a floating / docking toolbar. This is a pretty big program. Recently I've added a new function that comes off of the toolbar. This involves some screen draws and screen captures....