]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/missing.h
Added Marco's first WinCE files
[wxWidgets.git] / include / wx / msw / missing.h
index fdcff64cc21694303627d0832be32aa01ed8c4fa..631006ba340326b0bec185ba33c2b07852d9820a 100644 (file)
@@ -100,7 +100,44 @@ typedef struct _LVITEMW {
     int iIndent;
 #endif
 } LV_ITEMW;
-typedef LV_ITEM LV_ITEMA;
+
+typedef struct tagLVITEMA
+{
+    UINT mask;
+    int iItem;
+    int iSubItem;
+    UINT state;
+    UINT stateMask;
+    LPSTR pszText;
+    int cchTextMax;
+    int iImage;
+    LPARAM lParam;
+#if (_WIN32_IE >= 0x0300)
+    int iIndent;
+#endif
+} LV_ITEMA;
+
+#define LV_ITEM LV_ITEMA;
+#endif
+
+#ifndef ListView_GetColumnWidth
+#define ListView_GetColumnWidth(hwnd, iCol) \
+    (int)SNDMSG((hwnd), LVM_GETCOLUMNWIDTH, (WPARAM)(int)(iCol), 0)
+#endif
+
+#ifndef ListView_SetColumnWidth
+#define ListView_SetColumnWidth(hwnd, iCol, cx) \
+    (BOOL)SNDMSG((hwnd), LVM_SETCOLUMNWIDTH, (WPARAM)(int)(iCol), MAKELPARAM((cx), 0))
+#endif
+
+#ifndef ListView_GetTextColor
+#define ListView_GetTextColor(hwnd)  \
+    (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0L)
+#endif
+
+#ifndef ListView_FindItem
+#define ListView_FindItem(hwnd, iStart, plvfi) \
+    (int)SNDMSG((hwnd), LVM_FINDITEM, (WPARAM)(int)(iStart), (LPARAM)(const LV_FINDINFO FAR*)(plvfi))
 #endif
 
 #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
@@ -122,6 +159,19 @@ typedef struct tagNMLVDISPINFOW {
 #endif
 #endif
 
+#if defined(__GNUWIN32__) && !defined(HDN_GETDISPINFOW)
+#define HDN_GETDISPINFOW (HDN_FIRST-29)
+typedef struct {
+        NMHDR hdr;
+        int iItem;
+        UINT mask;
+        LPWSTR pszText;
+        int cchTextMax;
+        int iImage;
+        LPARAM lParam;
+} NMHDDISPINFOW, *LPNMHDDISPINFOW;
+#endif
+
 
 // ----------------------------------------------------------------------------
 // MS HTML Help
@@ -193,6 +243,19 @@ struct HH_AKLINK
     #define QS_ALLPOSTMESSAGE    0x0100
 #endif
 
+#ifdef __WXWINE__
+#define LV_ITEMA LVITEMA
+#define LV_ITEMW LVITEMW
+#define LV_DISPINFOA NMLVDISPINFOA
+#define LV_DISPINFOW NMLVDISPINFOW
+
+#if wxUSE_UNICODE
+#define LV_FINDINFO LVFINDINFOW
+#else
+#define LV_FINDINFO LVFINDINFOA
+#endif
+
+#endif
 
 #endif
     // _WX_MISSING_H_