]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 700313 ] Allow wxUSE_OWNER_DRAWN = 0
authorJulian Smart <julian@anthemion.co.uk>
Wed, 2 Apr 2003 14:18:51 +0000 (14:18 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 2 Apr 2003 14:18:51 +0000 (14:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xh_chckl.cpp
contrib/src/xrc/xh_menu.cpp
src/xrc/xh_chckl.cpp
src/xrc/xh_menu.cpp

index 408c02570dd950022cbc7dd36b17b2e1f0c5bd5f..46be0a3364f56c55d823df68cca0b54b5978cb02 100644 (file)
@@ -19,6 +19,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_OWNER_DRAWN
+
 #include "wx/xrc/xh_chckl.h"
 #include "wx/checklst.h"
 #include "wx/intl.h"
@@ -105,4 +107,4 @@ bool wxCheckListXmlHandler::CanHandle(wxXmlNode *node)
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-
+#endif
\ No newline at end of file
index 08d5dc4d210cfb2b6afbb29bb82605684f19812e..ec9a9d0f5ffb21787bb626546b35f0a42ba8e4c8 100644 (file)
@@ -86,8 +86,10 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
                                                GetText(wxT("help")), kind);
                                                
 #if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
+#if wxUSE_OWNER_DRAWN
                 if (HasParam(wxT("bitmap")))
                     mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
+#endif
 #endif
             p_menu->Append(mitem);
             mitem->Enable(GetBool(wxT("enabled"), TRUE));
index 408c02570dd950022cbc7dd36b17b2e1f0c5bd5f..46be0a3364f56c55d823df68cca0b54b5978cb02 100644 (file)
@@ -19,6 +19,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_OWNER_DRAWN
+
 #include "wx/xrc/xh_chckl.h"
 #include "wx/checklst.h"
 #include "wx/intl.h"
@@ -105,4 +107,4 @@ bool wxCheckListXmlHandler::CanHandle(wxXmlNode *node)
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-
+#endif
\ No newline at end of file
index 08d5dc4d210cfb2b6afbb29bb82605684f19812e..ec9a9d0f5ffb21787bb626546b35f0a42ba8e4c8 100644 (file)
@@ -86,8 +86,10 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
                                                GetText(wxT("help")), kind);
                                                
 #if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
+#if wxUSE_OWNER_DRAWN
                 if (HasParam(wxT("bitmap")))
                     mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
+#endif
 #endif
             p_menu->Append(mitem);
             mitem->Enable(GetBool(wxT("enabled"), TRUE));