 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
RichardM Guest
|
Posted: Sun Oct 10, 2004 5:35 pm Post subject: detecting when a laptop is suspending and resuming |
|
|
Could anyone point me in the direction of where to find info about
trapping the events that my app would be given when a laptop goes into
suspend or resume?
I am already trapping something (anything) on WM_POWERBROADCAST when
the laptop goes into suspend, but I am not sure how to work out when
it's resumed again?
Thanks in advance
Richard
|
|
| Back to top |
|
 |
Woody/mCSSPA Guest
|
Posted: Wed Oct 13, 2004 2:13 pm Post subject: Re: detecting when a laptop is suspending and resuming |
|
|
hi richard,
you're on the right way. look up WM_POWERBROADCAST in the win32
developer's references (included with delphi); there you can find the
parameter values (espc. PBT_APMSUSPEND / PBT_APMRESUMESUSPEND) that you
have to catch when writing a message handler.
furthermore, looking up the delphi help for TApplication.OnMessage might
be useful if you want to use an alternative to the "message <MSG_ID>;"
directive.
regards, Woody/mC
RichardM wrote:
| Quote: | Could anyone point me in the direction of where to find info about
trapping the events that my app would be given when a laptop goes into
suspend or resume?
I am already trapping something (anything) on WM_POWERBROADCAST when
the laptop goes into suspend, but I am not sure how to work out when
it's resumed again?
Thanks in advance
Richard
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|