#endif
// ----------------------------------------------------------------------------
-// Toolbar define value missing
+// Common Control missing
+// ----------------------------------------------------------------------------
+// __DMC__ date time control IDs
+
+#ifdef __DMC__
+#define DATETIMEPICK_CLASSW L"SysDateTimePick32"
+#define DATETIMEPICK_CLASSA "SysDateTimePick32"
+
+#define ICC_DATE_CLASSES 256
+
+#if (_WIN32_IE >= 0x0300)
+typedef struct tagINITCOMMONCONTROLSEX {
+ DWORD dwSize;
+ DWORD dwICC;
+} INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
+
+#define GDTR_MIN 1
+#define GDTR_MAX 2
+
+#define GDT_ERROR -1
+#define GDT_VALID 0
+#define GDT_NONE 1
+
+
+#define DTS_UPDOWN 1
+#define DTS_SHOWNONE 2
+#define DTS_SHORTDATEFORMAT 0
+#define DTS_LONGDATEFORMAT 4
+#define DTS_TIMEFORMAT 9
+#define DTS_APPCANPARSE 16
+#define DTS_RIGHTALIGN 32
+#if ( _WIN32_IE >= 0x500 )
+#define DTS_SHORTDATECENTURYFORMAT 0x000C
+#endif /* _WIN32_IE >= 0x500 */
+#endif
+
+
+
+#define DATETIMEPICK_CLASSW L"SysDateTimePick32"
+#define DATETIMEPICK_CLASSA "SysDateTimePick32"
+
+#ifdef UNICODE
+ #define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW
+#else
+ #define DATETIMEPICK_CLASS DATETIMEPICK_CLASSA
+#endif
+
+#define DTM_GETSYSTEMTIME 0x1001
+#define DTM_SETSYSTEMTIME 0x1002
+#define DTM_GETRANGE 0x1003
+#define DTM_SETRANGE 0x1004
+#define DTN_DATETIMECHANGE ((UINT)-759)
+
+#define DateTime_GetMonthCal(hwnd) SNDMSG(hwnd, DTM_GETMONTHCAL, 0, 0)
+#define DateTime_GetMonthCalColor(hwnd, icolor) SNDMSG(hwnd, DTM_GETMONTHCAL, (WPARAM)icolor,0)
+#define DateTime_GetMonthCalFont(hwnd) SNDMSG(hwnd,DTM_GETMCFONT,0,0)
+#define DateTime_GetRange(hwnd,lpsystimearray) SNDMSG(hwnd,DTM_GETRANGE,0,(LPARAM)lpsystimearray)
+#define DateTime_GetSystemTime(hwnd,lpsystime) SNDMSG(hwnd,DTM_GETSYSTEMTIME,0,(LPARAM)lpsystime)
+#define DateTime_SetFormat(hwnd,lpszformat) SNDMSG(hwnd,DTM_SETFORMAT,0,(LPARAM)lpszformat)
+#define DateTime_SetMonthCalColor(hwnd,icolor,clr) SNDMSG(hwnd,DTM_SETMCCOLOR,(WPARAM)icolor,(LPARAM)clr)
+#define DateTime_SetMonthCalFont(hwnd,hfont,lparam) SNDMSG(hwnd,DTM_SETMCFONT,(WPARAM)hfont,(LPARAM)lparam)
+#define DateTime_SetRange(hwnd,flags,lpsystimearray) SNDMSG(hwnd,DTM_SETRANGE,(WPARAM)flags,(LPARAM)lpsystimearray)
+#define DateTime_SetSystemTime(hwnd,flag,lpsystime) SNDMSG(hwnd,DTM_SETSYSTEMTIME,(WPARAM)flag,(LPARAM)lpsystime)
+
+
+#endif //__DMC__ date time control IDs
+
+#if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 2, 4 ) || defined (__DMC__)
+typedef struct tagNMDATETIMECHANGE
+{
+ NMHDR nmhdr;
+ DWORD dwFlags;
+ SYSTEMTIME st;
+} NMDATETIMECHANGE;
+#endif // old gcc headers
+
+// ----------------------------------------------------------------------------
+// Toolbar define value missing
// ----------------------------------------------------------------------------
#if !defined(CCS_VERT)
#define CCS_VERT 0x00000080L
#define TVM_SETTEXTCOLOR (TV_FIRST + 30)
#endif
-#ifndef TVS_INFOTIP
+#ifndef TVS_INFOTIP
#define TVS_INFOTIP 2048
#endif
#ifndef TVN_GETINFOTIPA
- #define TVN_GETINFOTIPA (TVN_FIRST-13)
- #define TVN_GETINFOTIPW (TVN_FIRST-14)
+ #define TVN_GETINFOTIPA (TVN_FIRST-13)
+ #define TVN_GETINFOTIPW (TVN_FIRST-14)
#endif
#ifndef TVN_GETINFOTIP
#define HANGUL_CHARSET 129
#endif
-#ifndef TME_HOVER
- #define TME_HOVER 1
+#ifndef TME_HOVER
+ #define TME_HOVER 1
#endif
-#ifndef TME_LEAVE
- #define TME_LEAVE 2
+#ifndef TME_LEAVE
+ #define TME_LEAVE 2
#endif
-#ifndef TME_QUERY
- #define TME_QUERY 0x40000000
+#ifndef TME_QUERY
+ #define TME_QUERY 0x40000000
#endif
-#ifndef TME_CANCEL
- #define TME_CANCEL 0x80000000
+#ifndef TME_CANCEL
+ #define TME_CANCEL 0x80000000
#endif
-#ifndef HOVER_DEFAULT
- #define HOVER_DEFAULT 0xFFFFFFFF
+#ifndef HOVER_DEFAULT
+ #define HOVER_DEFAULT 0xFFFFFFFF
#endif
#ifdef __DMC__
- typedef struct tagTRACKMOUSEEVENT {
- DWORD cbSize;
- DWORD dwFlags;
- HWND hwndTrack;
- DWORD dwHoverTime;
- } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
-
- WINCOMMCTRLAPI BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack);
+ #ifndef _TrackMouseEvent
+ #define _TrackMouseEvent TrackMouseEvent
+ #endif
#endif
#define OFN_ENABLESIZING 0x00800000
#endif
+// ------------------ For Flashing Window -------------
+#if (defined(__BORLANDC__) && (__BORLANDC__ < 550))
+typedef struct {
+ UINT cbSize;
+ HWND hwnd;
+ DWORD dwFlags;
+ UINT uCount;
+ DWORD dwTimeout;
+} FLASHWINFO, *PFLASHWINFO;
+#endif
+
// In addition, include stuff not defined in WinCE
#ifdef __WXWINCE__
#include "wx/msw/wince/missing.h"