#include "wx/msw/wrapcctl.h"
#include "wx/msw/private.h"
+#if defined(__GNUWIN32__) && ! wxCHECK_W32API_VERSION( 2, 4 )
+typedef struct tagNMDATETIMECHANGE
+{
+ NMHDR nmhdr;
+ DWORD dwFlags;
+ SYSTEMTIME st;
+} NMDATETIMECHANGE, FAR * LPNMDATETIMECHANGE;
+#endif
+
// ============================================================================
// implementation
// ============================================================================
{
const wxDateTime::Tm tm(dt.GetTm());
- st->wYear = tm.year;
- st->wMonth = tm.mon - wxDateTime::Jan + 1;
+ st->wYear = (WXWORD)tm.year;
+ st->wMonth = (WXWORD)(tm.mon - wxDateTime::Jan + 1);
st->wDay = tm.mday;
st->wDayOfWeek =