git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39467
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/power.h"
#include "wx/msw/private.h"
#include "wx/power.h"
#include "wx/msw/private.h"
+#ifdef __WXWINCE__
+ typedef SYSTEM_POWER_STATUS_EX SYSTEM_POWER_STATUS;
+ BOOL GetSystemPowerStatus(SYSTEM_POWER_STATUS *status)
+ {
+ return GetSystemPowerStatusEx(status, TRUE);
+ }
+#endif
+
// ----------------------------------------------------------------------------
// helper functions
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// helper functions
// ----------------------------------------------------------------------------
return wxBATTERY_UNKNOWN_STATE;
}
return wxBATTERY_UNKNOWN_STATE;
}
#endif
#include <commctrl.h>
#endif
#include <commctrl.h>
+
+#ifndef __WXWINCE__
+ #include <pbt.h>
+#endif
#include "wx/msw/missing.h"
#include "wx/msw/missing.h"
case WM_POWERBROADCAST:
{
bool vetoed;
case WM_POWERBROADCAST:
{
bool vetoed;
rc.result = processed && vetoed ? BROADCAST_QUERY_DENY : TRUE;
}
break;
rc.result = processed && vetoed ? BROADCAST_QUERY_DENY : TRUE;
}
break;
-bool wxWindowMSW::HandlePower(WXWPARAM wParam,
+bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam),
WXLPARAM WXUNUSED(lParam),
WXLPARAM WXUNUSED(lParam),
+ bool *WXUNUSED_IN_WINCE(vetoed))
+#ifdef __WXWINCE__
+ // FIXME
+ return false;
+#else
wxEventType evtType;
switch ( wParam )
{
wxEventType evtType;
switch ( wParam )
{
*vetoed = event.IsVetoed();
return true;
*vetoed = event.IsVetoed();
return true;
}
// ---------------------------------------------------------------------------
}
// ---------------------------------------------------------------------------