X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..f55fee08e9d56f3994e0af75efe179d14a6258e7:/src/xrc/xh_chckl.cpp diff --git a/src/xrc/xh_chckl.cpp b/src/xrc/xh_chckl.cpp index 0dde7f6759..d7e5226486 100644 --- a/src/xrc/xh_chckl.cpp +++ b/src/xrc/xh_chckl.cpp @@ -8,7 +8,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "xh_chckl.h" #endif @@ -19,7 +19,9 @@ #pragma hdrstop #endif -#if wxUSE_OWNER_DRAWN || !defined(__WXMSW__) +#if wxUSE_XRC + +#if wxUSE_CHECKLISTBOX #include "wx/xrc/xh_chckl.h" #include "wx/checklst.h" @@ -31,7 +33,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler) wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler() : wxXmlResourceHandler(), m_insideBox(false) { - // no styles + // wxListBox styles: + XRC_ADD_STYLE(wxLB_SINGLE); + XRC_ADD_STYLE(wxLB_MULTIPLE); + XRC_ADD_STYLE(wxLB_EXTENDED); + XRC_ADD_STYLE(wxLB_HSCROLL); + XRC_ADD_STYLE(wxLB_ALWAYS_SB); + XRC_ADD_STYLE(wxLB_NEEDED_SB); + XRC_ADD_STYLE(wxLB_SORT); + AddWindowStyles(); } @@ -121,5 +131,6 @@ bool wxCheckListBoxXmlHandler::CanHandle(wxXmlNode *node) (m_insideBox && node->GetName() == wxT("item"))); } -#endif +#endif // wxUSE_CHECKLISTBOX +#endif // wxUSE_XRC