wxWinCE power build fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-05-29 23:24:02 +00:00
parent dc690d951f
commit dbc74bccc9
2 changed files with 21 additions and 5 deletions

View File

@@ -30,6 +30,14 @@
#include "wx/power.h" #include "wx/power.h"
#include "wx/msw/private.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
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -94,5 +102,3 @@ wxBatteryState wxGetBatteryState()
return wxBATTERY_UNKNOWN_STATE; return wxBATTERY_UNKNOWN_STATE;
} }

View File

@@ -105,7 +105,10 @@
#endif #endif
#include <commctrl.h> #include <commctrl.h>
#ifndef __WXWINCE__
#include <pbt.h> #include <pbt.h>
#endif
#include "wx/msw/missing.h" #include "wx/msw/missing.h"
@@ -3081,6 +3084,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
} }
break; break;
#ifndef __WXWINCE__
case WM_POWERBROADCAST: case WM_POWERBROADCAST:
{ {
bool vetoed; bool vetoed;
@@ -3088,6 +3092,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
rc.result = processed && vetoed ? BROADCAST_QUERY_DENY : TRUE; rc.result = processed && vetoed ? BROADCAST_QUERY_DENY : TRUE;
} }
break; break;
#endif // __WXWINCE__
} }
if ( !processed ) if ( !processed )
@@ -3795,10 +3800,14 @@ bool wxWindowMSW::HandleSetCursor(WXHWND WXUNUSED(hWnd),
return false; return false;
} }
bool wxWindowMSW::HandlePower(WXWPARAM wParam, bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam),
WXLPARAM WXUNUSED(lParam), WXLPARAM WXUNUSED(lParam),
bool *vetoed) bool *WXUNUSED_IN_WINCE(vetoed))
{ {
#ifdef __WXWINCE__
// FIXME
return false;
#else
wxEventType evtType; wxEventType evtType;
switch ( wParam ) switch ( wParam )
{ {
@@ -3851,6 +3860,7 @@ bool wxWindowMSW::HandlePower(WXWPARAM wParam,
*vetoed = event.IsVetoed(); *vetoed = event.IsVetoed();
return true; return true;
#endif
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------