]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menu.cpp
minimize overlay area to avoid eg scrolling artifacts when using a caret
[wxWidgets.git] / src / msw / menu.cpp
index 28581bd470261c959f2bfdcc5b5380551852a74c..65affb6e59642c1a6a8daf52ebc3aa2c506a9784 100644 (file)
@@ -416,7 +416,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
             // while our owner-drawn code is not
 
             // first compile-time check
-#ifdef MIIM_BITMAP
+#if defined(MIIM_BITMAP) && (_WIN32_WINNT >= 0x0500)
             WinStruct<MENUITEMINFO> mii;
 
             // now run-time one: MIIM_BITMAP only works under WinME/2000+