]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_menu.cpp
added wxWizard handler to XRC
[wxWidgets.git] / contrib / src / xrc / xh_menu.cpp
index 08d5dc4d210cfb2b6afbb29bb82605684f19812e..80a992acfa95a78e0310af47b70ef9e1377ae804 100644 (file)
@@ -85,7 +85,7 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
             wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
                                                GetText(wxT("help")), kind);
                                                
-#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
+#if wxCHECK_VERSION(2,3,0) || (defined(__WXMSW__) && wxUSE_OWNER_DRAWN)
                 if (HasParam(wxT("bitmap")))
                     mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
 #endif