Page 1 of 1

PocketHAL fullscreen questions

PostPosted: Feb 28, 2005 @ 5:43pm
by rajs20
Hi,

I was using GAPI for my game but I had some problems with fullscreen:

1. If a system message pops up over my app (like "please re-insert the storage card" or "low battery"), then my game suspends drawing. The problem is, if the user drags the messagebox around on the screen, it leaves copies of itself on the screen, making a mess.

2. Sometimes if I am in the game and then I switch tasks (for example, I press the "calendar" button on my iPaq), then the calendar window will show up correctly, but the title bar of the calendar window will be either partially or completely overwritten by the game's graphics, EVEN though I am suspending on WM_KILLFOCUS

So, after lots of experimenting, I am getting sick of GAPI and would like to give PocketHAL a shot. So, I have two questions about PocketHAL:

1. Does anyone know if the above problems would be fixed if I switch to PocketHAL?

2. Is there any sample app w/ source code included that I could look at, which plays nice with windows? I was looking at some fireworks demo (pretty cool) but it disables task switching altogether (if you press the calendar button, nothing happens), so I was unable to test if it would work properly or not.

Thanks very much,

Raj

PostPosted: Feb 28, 2005 @ 7:33pm
by roos
Hi, this is the original poster.I wanted to clarify a bit exactly what the problem is that I'm having...

Here's what I did:
-I opened up the code for the Fireworks demo that comes with PocketHAL
-I added a ShellExecuteEx() call which opens up another application any time you press a key
-Now, I run the fireworks demo, and I press a key to open up an app, and *while the app is loading*, I close it at the exact same time by clicking on the "X" in the upper-right corner

When I do these steps, I get the following problem:
-The title bar of the window I just opened has a rectangle where I can see the game graphics overwritten onto it.

So for example, let's say I had an app which simply drew a red screen, and then while it was running, I open up the "contacts" window and close that window at the exact moment that I open it. This is roughly what I am seeing:

Image

I'm pretty stumped about this. It's a glitch that has been haunting me, no matter whether I use GAPI or PocketHAL. (Although if I use GDI, it works fine).

Any clues?

Thanks!

Raj