]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/missing.h
Header Cosmetics
[wxWidgets.git] / include / wx / msw / missing.h
index 8c347306c95036f29f38f6dc20dc244600bb6a5c..3caf5355f2b0df844771906ce75e7a0b2635732e 100644 (file)
@@ -430,6 +430,45 @@ typedef struct {
     #define TVM_SETTEXTCOLOR        (TV_FIRST + 30)
 #endif
 
+#ifndef TVN_GETINFOTIPA
+    #define TVN_GETINFOTIPA    (TVN_FIRST-13)
+    #define TVN_GETINFOTIPW    (TVN_FIRST-14) 
+#endif
+
+#ifndef TVN_GETINFOTIP
+    #ifdef UNICODE
+        #define TVN_GETINFOTIP TVN_GETINFOTIPW
+    #else
+        #define TVN_GETINFOTIP TVN_GETINFOTIPA
+    #endif
+#endif
+
+#if !defined(NMTVGETINFOTIP) && defined(TVN_FIRST)
+    // NB: Check for TVN_FIRST is done so that this code is not included if
+    //     <commctrl.h> (which defined HTREEITEM) wasn't included before.
+    struct NMTVGETINFOTIPA
+    {
+        NMHDR     hdr;
+        LPSTR     pszText;
+        int       cchTextMax;
+        HTREEITEM hItem;
+        LPARAM    lParam;
+    };
+    struct NMTVGETINFOTIPW
+    {
+        NMHDR     hdr;
+        LPWSTR     pszText;
+        int       cchTextMax;
+        HTREEITEM hItem;
+        LPARAM    lParam;
+    };
+    #ifdef UNICODE
+        #define NMTVGETINFOTIP NMTVGETINFOTIPW
+    #else
+        #define NMTVGETINFOTIP NMTVGETINFOTIPA
+    #endif
+#endif
+
 // ----------------------------------------------------------------------------
 // Misc stuff
 // ----------------------------------------------------------------------------