#include "wx/sizer.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/textctrl.h"
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#include "wx/spinctrl.h"
#endif // wxUSE_SPINCTRL
-#include "wx/textctrl.h"
#include "wx/notebook.h"
#include "wx/listctrl.h"
#include <windowsx.h>
#endif
-#include <commctrl.h>
+// include <commctrl.h> "properly"
+#include "wx/msw/wrapcctl.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 )
// Truncate tooltip length if needed as otherwise we might not have
// enough space for it in the buffer and MultiByteToWideChar() would
// return an error
- size_t tipLength = wxMin(ttip.Len(), WXSIZEOF(buf) - 1);
+ size_t tipLength = wxMin(ttip.length(), WXSIZEOF(buf) - 1);
// Convert to WideChar without adding the NULL character. The NULL
// character is added afterwards (this is more efficient).
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 )
{
break;
case PBT_APMRESUMESUSPEND:
+#ifdef PBT_APMRESUMEAUTOMATIC
+ case PBT_APMRESUMEAUTOMATIC:
+#endif
evtType = wxEVT_POWER_RESUME;
break;
case PBT_APMBATTERYLOW:
case PBT_APMPOWERSTATUSCHANGE:
case PBT_APMOEMEVENT:
- case PBT_APMRESUMEAUTOMATIC:
case PBT_APMRESUMECRITICAL:
evtType = wxEVT_NULL;
break;
*vetoed = event.IsVetoed();
return true;
+#endif
}
// ---------------------------------------------------------------------------