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"
+#ifdef __WXWINCE__
+ typedef SYSTEM_POWER_STATUS_EX SYSTEM_POWER_STATUS;
+ BOOL GetSystemPowerStatus(SYSTEM_POWER_STATUS *status)
+ {
+ return GetSystemPowerStatusEx(status, TRUE);
+ }
+#endif
+
// ----------------------------------------------------------------------------
// helper functions
// ----------------------------------------------------------------------------
return wxBATTERY_UNKNOWN_STATE;
}
-
-
#endif
#include <commctrl.h>
-#include <pbt.h>
+
+#ifndef __WXWINCE__
+ #include <pbt.h>
+#endif
#include "wx/msw/missing.h"
}
break;
+#ifndef __WXWINCE__
case WM_POWERBROADCAST:
{
bool vetoed;
rc.result = processed && vetoed ? BROADCAST_QUERY_DENY : TRUE;
}
break;
+#endif // __WXWINCE__
}
if ( !processed )
return false;
}
-bool wxWindowMSW::HandlePower(WXWPARAM wParam,
+bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam),
WXLPARAM WXUNUSED(lParam),
- bool *vetoed)
+ bool *WXUNUSED_IN_WINCE(vetoed))
{
+#ifdef __WXWINCE__
+ // FIXME
+ return false;
+#else
wxEventType evtType;
switch ( wParam )
{
*vetoed = event.IsVetoed();
return true;
+#endif
}
// ---------------------------------------------------------------------------