]> 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 4ff9112e1df087e60b13ac89989529aae8da519d..80a992acfa95a78e0310af47b70ef9e1377ae804 100644 (file)
@@ -85,9 +85,9 @@ 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")));
+                    mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
 #endif
             p_menu->Append(mitem);
             mitem->Enable(GetBool(wxT("enabled"), TRUE));