]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/missing.h
winundef.h serves for other compilators too with STL turned on.
[wxWidgets.git] / include / wx / msw / missing.h
index d4532496aee3d2798dcba870c045ab27241aa0e5..75f5b5a13c268228f664e11d75d36b1bcf2c7583 100644 (file)
@@ -184,6 +184,83 @@ typedef struct {
 #define LVM_SETUNICODEFORMAT 0x2005
 #endif
 
+// ----------------------------------------------------------------------------
+// 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
 // ----------------------------------------------------------------------------
@@ -519,14 +596,9 @@ typedef struct {
 
 #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
 
@@ -592,6 +664,17 @@ typedef struct {
     #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"