]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for !wxUSE_OWNER_DRAWN.
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 30 Sep 2013 17:12:24 +0000 (17:12 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 30 Sep 2013 17:12:24 +0000 (17:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menu.cpp

index f2bcc2000e51673b805a40133ad887af09b6c593..5f461854e276db5e503b61b087cde50ebd715d12 100644 (file)
@@ -731,11 +731,13 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
             return false;
         }
 
+#if wxUSE_OWNER_DRAWN
         if ( makeItemOwnerDrawn )
         {
             SetOwnerDrawnMenuItem(GetHmenu(), pos,
                                   reinterpret_cast<ULONG_PTR>(pItem), TRUE);
         }
+#endif
     }