On Wednesday 11 September 2002 07:50 am, Andreas Raab wrote:
Ned,
Sounds like we're missing some notification from WinNT/WinCE...
To me, it sounds as if MS should get its act together. If it doesn't send a notification to the window that's been woken up after a sleep to redraw itself, what do you expect Squeak to do?!
It looks like WinCE returns EV_POWER from the (blocking) WaitCommEvent() API call on power-resume; we could have a separate thread that would just wait for this and signal a semaphore.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceseril/ht...
It's not clear to me which WinCE variants support WM_POWERBROADCAST, but apparently some do.
And some also apparently send a WM_KEYUP (for the power key?) on power-up.