]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/missing.h
compilation fix for tooltip patch code applied by Julian and w32api
[wxWidgets.git] / include / wx / msw / missing.h
index e8da5b96c699e08bf13578710a2ec0c9d536aadb..3c062e04f0867c65c955be0334c81d0fe6cd4e65 100644 (file)
@@ -438,7 +438,9 @@ typedef struct {
     #endif
 #endif
 
-#ifndef NMTVGETINFOTIP
+#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;