PDA

Click to See Complete Forum and Search --> : How To: Using BitBlt with a timer


Zaf Khan
Mar 29th, 2000, 04:57 AM
Ok here goes,

I 'm using a timer control together with the Bitblt winapi call, the only problem is; if the window doint the bitblt-ing is not the window with the focus and that window is covered by another, whatever is on the screen at the location that i am bitblt-ing is sent instead of the the data on my window.

Any ideas?

Sam Finch
Mar 29th, 2000, 09:16 PM
It depends what you're trying to do, you can't bitblt the window's client area unless the window's on top, fact is the hidden part of the client area just isn't there in memory,you can get the bitmap ot of the dc using select object, and but it in a memory dc, remembering to put it back so you have the same bitmap in the 2 DCs then bitblt from your memory dc but I don't know if this'll work or you could bring the window to the top.

Hope this helps