Correction to last patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_OWNER_DRAWN || !defined(__WXMSW__)
|
||||||
|
|
||||||
#include "wx/xrc/xh_chckl.h"
|
#include "wx/xrc/xh_chckl.h"
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
|
@@ -85,11 +85,9 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
|
|||||||
wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
|
wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
|
||||||
GetText(wxT("help")), kind);
|
GetText(wxT("help")), kind);
|
||||||
|
|
||||||
#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
|
#if wxCHECK_VERSION(2,3,0) || (defined(__WXMSW__) && wxUSE_OWNER_DRAWN)
|
||||||
#if wxUSE_OWNER_DRAWN
|
|
||||||
if (HasParam(wxT("bitmap")))
|
if (HasParam(wxT("bitmap")))
|
||||||
mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
|
mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
p_menu->Append(mitem);
|
p_menu->Append(mitem);
|
||||||
mitem->Enable(GetBool(wxT("enabled"), TRUE));
|
mitem->Enable(GetBool(wxT("enabled"), TRUE));
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_OWNER_DRAWN || !defined(__WXMSW__)
|
||||||
|
|
||||||
#include "wx/xrc/xh_chckl.h"
|
#include "wx/xrc/xh_chckl.h"
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
|
@@ -85,11 +85,9 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
|
|||||||
wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
|
wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
|
||||||
GetText(wxT("help")), kind);
|
GetText(wxT("help")), kind);
|
||||||
|
|
||||||
#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
|
#if wxCHECK_VERSION(2,3,0) || (defined(__WXMSW__) && wxUSE_OWNER_DRAWN)
|
||||||
#if wxUSE_OWNER_DRAWN
|
|
||||||
if (HasParam(wxT("bitmap")))
|
if (HasParam(wxT("bitmap")))
|
||||||
mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
|
mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
p_menu->Append(mitem);
|
p_menu->Append(mitem);
|
||||||
mitem->Enable(GetBool(wxT("enabled"), TRUE));
|
mitem->Enable(GetBool(wxT("enabled"), TRUE));
|
||||||
|
Reference in New Issue
Block a user