]> git.saurik.com Git - wxWidgets.git/commitdiff
InsertMenuItem() works with bitmaps under Win98 too (not only ME)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Jun 2005 20:13:48 +0000 (20:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Jun 2005 20:13:48 +0000 (20:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menu.cpp

index 05b9370dbfb3ec93e25cec7e91fb0aba028ed601..462bea448b3ee9af24ba396146962ae3c76cd510 100644 (file)
@@ -398,7 +398,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
             WinStruct<MENUITEMINFO> mii;
 
             // now run-time one: MIIM_BITMAP only works under WinME/2000+
-            if ( wxGetWinVersion() >= wxWinVersion_5 )
+            if ( wxGetWinVersion() >= wxWinVersion_98 )
             {
                 mii.fMask = MIIM_ID | MIIM_STRING | MIIM_DATA | MIIM_BITMAP;
                 mii.wID = id;