When I minimize my application, what should I do with PHal?
Currently, I'm pausing my app, and switching from a PeekMessage message pump/game loop to a simple GetMessage loop, sending a minimize message to the window, and using SHFullScreen to re-enable the start button, taskbar etc.
As long as I use the WS_EX_TOPMOST window style, I can minimize (using an in-game button handled myself), and refocus the app cleanly.
But I'm not doing anything to deinit/reinit PHal. And it works, at least on my device(!)....
Is this expected behaviour, or should I be destroying and recreating the display object on each loss of focus/refocus? (which also works, but causes the banner to redisplay)
I've not managed to handle 'forced minimization' yet, when the device is left unused and reverts to the Today screen. Not so easy to test this one, as it involves waiting an hour or two.... may have to write a test app that runs a timer in the background then tries to maximize itself....
Also, is there an easy way to detect Activesync syncing (so I can force a minimize, and hide the gitching when it tried to update it's progress dialog)?
Currently, I'm pausing my app, and switching from a PeekMessage message pump/game loop to a simple GetMessage loop, sending a minimize message to the window, and using SHFullScreen to re-enable the start button, taskbar etc.
As long as I use the WS_EX_TOPMOST window style, I can minimize (using an in-game button handled myself), and refocus the app cleanly.
But I'm not doing anything to deinit/reinit PHal. And it works, at least on my device(!)....
Is this expected behaviour, or should I be destroying and recreating the display object on each loss of focus/refocus? (which also works, but causes the banner to redisplay)
I've not managed to handle 'forced minimization' yet, when the device is left unused and reverts to the Today screen. Not so easy to test this one, as it involves waiting an hour or two.... may have to write a test app that runs a timer in the background then tries to maximize itself....
Also, is there an easy way to detect Activesync syncing (so I can force a minimize, and hide the gitching when it tried to update it's progress dialog)?