diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index e8da5b96c6..3c062e04f0 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -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 + // (which defined HTREEITEM) wasn't included before. struct NMTVGETINFOTIPA { NMHDR hdr;