PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Loading current display content to backbuffer

hi..
maybe it is a simple problem, but...

im trying to make a multi-window application with fast moving graphics inside.
And for this purpose i need to save the current display content in the backbuffer to overlay it with graphics without killing my title-bar, the menu-bar and other information.
I think, when I retrieve the backbuffer first time, it will we initialisized with zeros, isn't it ??

thanks..
My guess is that you want to retrieve a copy of the desktop bitmap. Sadly, due to the GAPI specification, you will not be able to do this on all Pocket PC devices (it could be "worked around" on the E-115 and E-125, but I have chosen not to since it really should be avoided to guarantee compatibility with future devices).

You could check if direct display access is available (CGapiDisplay->GetDisplayCaps). If so, you can simply access the display surface as any other surface ("blit from the display to another surface").

I think the safest way would be to use a DC to copy the entire desktop bitmap and then use GDI-Blt to blit this onto a DC-locked GapiDraw surface.