Pocket PC Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!





Go Back   Thoughts Media Forums > POCKET PC THOUGHTS > Pocket PC Developer

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2004, 05:40 PM
Ponderer
Join Date: Dec 2003
Posts: 80
Default WM_HIBERNATE

If your app has an icon on the toolbar it is supposed to handle hibernate messages. After your app frees up resources can it post a WM_ACTIVATE to keep itself alive or does CE/Mobile shut it down anyway?
 
Reply With Quote
  #2 (permalink)  
Old 06-12-2004, 06:33 PM
Pontificator
Join Date: Nov 2003
Posts: 1,209
Send a message via MSN to Kowalski

Quote:
The application leaves this state either by receiving a WM_ACTIVATE message, in which case it is the application’s responsibility to attain the state it was in before the hibernate, or by getting a WM_CLOSE message, in which case the application will exit properly.
this is taken from MSDN. i didnt have the time to try but what i understand is that the program has the opportunity to send a WM_ACTIVATE message to keep itself alive. but this came confusing to me about the message description

Quote:
This message is sent to an application when system resources are running low
__________________
I used to think, that the universe is a random caotic sequence of meaningless events. But i see now that there is reason and purpose to all things.
Jerry Seinfeld
 
Reply With Quote
  #3 (permalink)  
Old 06-14-2004, 03:12 PM
Ponderer
Join Date: Dec 2003
Posts: 80
Default more info

actually i found more information at

http://www.cegadgets.com/wincedevfaq.htm#WM_HIBERNATE

this is kind of anoying if true, i am now running tests, but apparently you first get a hiberate, then a wm-close, and finally a process termination.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 12:15 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7