]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/power.cpp
Rework the wxCusor ctor taking wx stock number to provide as many cursors as
[wxWidgets.git] / src / msw / power.cpp
index 022e624dadfb8c52521cea4d5170ee83442294fe..83819c38fb15a0e381ed5c9bc98446142207e40c 100644 (file)
 #endif //WX_PRECOMP
 
 #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
@@ -93,5 +102,3 @@ wxBatteryState wxGetBatteryState()
 
     return wxBATTERY_UNKNOWN_STATE;
 }
-
-