#include <commctrl.h>
+#ifndef __WXWINCE__
+ #include <pbt.h>
+#endif
+
#include "wx/msw/missing.h"
#if defined(__WXWINCE__)
}
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 )
{
case PBT_APMBATTERYLOW:
case PBT_APMPOWERSTATUSCHANGE:
case PBT_APMOEMEVENT:
+#ifdef PBT_APMRESUMEAUTOMATIC
case PBT_APMRESUMEAUTOMATIC:
+#endif
case PBT_APMRESUMECRITICAL:
evtType = wxEVT_NULL;
break;
*vetoed = event.IsVetoed();
return true;
+#endif
}
// ---------------------------------------------------------------------------