Hibernation event
Chris
chrismc911 at hotmail.com
Sat Aug 25 07:29:52 PDT 2007
In case anyone is interested how to do this. Credits go to _Sick in
the #wxwidgets channel: thanks for your code snippet!
// in your h file add
private:
WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM
lParam);
and in your cpp
#include <windows.h>
WXLRESULT Frame::MSWWindowProc(WXUINT message, WXWPARAM wParam,
WXLPARAM lParam)
{
if (message == WM_POWERBROADCAST)
{
if (wParam == ...) //
{...}
}
return wxFrame::MSWWindowProc(message,wParam,lParam);
}
Chris schrieb:
> Hi,
>
> I am looking for an event when the machine goes into hibernation mode.
> I found EVT_HIBERNATE in wxActivateEvent but the docu states, that the
> event only "applies to wxApp only, and only on Windows SmartPhone and
> PocketPC".
>
> Is there any way to receive such an event under Windows XP or Linux?
>
> Regards,
> Chris
More information about the wx-users
mailing list