[SDL] Losing focus because of a warning window - windows CE
Marko Djukic
djmare at gmail.com
Wed Jul 12 05:51:27 PDT 2006
I'll explain better what happens. When you take the battery out of the
mobile device (to replace it with a fully charged one) it goes into
suspend mode. You can also use the device on a cradle without the
battery and it will also go into suspend if you take it off the cradle
(basically you cut the power).
When you replace the battery and wake the device up, the application
continues normally. But then a window pops up to warn you about a high
current demand which caused the device to suspend (removal of battery or
removal of device with no battery from the cradle). It pops up in front
of the application we're running.
Redrawing the window with the application helps to regain focus, but the
warning window is still in front of our application (which runs full
screen) and you have to 'click' (touch) on our application (behind the
window) to bring it in front. We want to force our application to be
always in front, or at least hide the warning windows as fast as
possible and bring the application in front.
I hope I cleared out the problem.
We're using windows CE 4.1, SDL 1.2 and GAPI.
Thanks
Marko Djukic
Dmitry Yakimov wrote:
> Hi,
>
> I've developed a WinCE part of SDL and AFAIK this case has been tested OK.
> What is your device?
> What driver do you use - GAPI or WinDib?
> What version of SDL?
>
> Could you send me a test case (short piece of code that reproduce a
> behaviour).
>
> p.s. if it is a bug I think a fix will be trivial
>
>
>> We're developing an application in SDL for windows CE. When there's a
>> power failure on the mobile device, a warning window pops up and the
>> application loses focus until you touch the screen.
>> The WM messages we receive are (in that order) WM_NCACTIVATE (we're not
>> sure what it means) and WM_CAPTURECHANGED (We force a redraw here and
>> regain focus, but the pop-up window remains upfront. If we don't redraw,
>> we cannot gain focus.).
>>
> Best Regards,
> Dmitry Yakimov
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060712/df36ad91/attachment.htm
More information about the SDL
mailing list