compilation fix for tooltip patch code applied by Julian and w32api
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 15 Dec 2003 21:50:56 +0000 (21:50 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 15 Dec 2003 21:50:56 +0000 (21:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;