PocketMatrix forums

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

windows programming problem

I'm having a little problem with pocket hal and my ppc2000 device.
When I tap certain parts of the screen during the game, it seems like the previous window get the tapping message. I.E. I tap in the zone where the Start menu was placed, and I see the start menu appear, while playing my game.
In fact I can even start media player while playing the game :)

I suppose I've missed a message in the MainProc function to catch. I look for this messages:

WM_KEYDOWN
WM_KEYUP
WM_MOUSEMOVE
WM_LBUTTONDOWN
WM_LBUTTONUP

after processing them (just setting some flags & values or adding keys to a buffer), I return TRUE.
If not processed, I return DefWindowProc value (with same parameters I've received)

It works perfectly in my wm2003 and two other ppcs I've tested

TIA :)
Kak
What is the PPC2000 device you use?

Are you properly calling SHFullScreen() when gaining or loosing focus? Sounds like your window isn't the top-most one for some reason...
Thierry wrote:What is the PPC2000 device you use?
Are you properly calling SHFullScreen() when gaining or loosing focus? Sounds like your window isn't the top-most one for some reason...


Yep, that was the problem. I started the project from the scratch and I didn't realize that they were in the sample file :)

BTW the problem appeared with a 3630, however being solved I suppose there's no point in knowing it ;)

Lots of thanks!
Kak