X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7a0050ff5059829024dca96d45985b6276715f1..2a2e4f4afa72e4d0df325d4cf742fa1bab16456d:/src/xrc/xh_listc.cpp diff --git a/src/xrc/xh_listc.cpp b/src/xrc/xh_listc.cpp index f133a894f7..6746b83224 100644 --- a/src/xrc/xh_listc.cpp +++ b/src/xrc/xh_listc.cpp @@ -7,7 +7,7 @@ // Copyright: (c) 2000 Brian Gavin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - + #ifdef __GNUG__ #pragma implementation "xh_listc.h" #endif @@ -19,6 +19,8 @@ #pragma hdrstop #endif +#if wxUSE_XRC + #include "wx/textctrl.h" #include "wx/xrc/xh_listc.h" #include "wx/listctrl.h" @@ -26,8 +28,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxListCtrlXmlHandler, wxXmlResourceHandler) -wxListCtrlXmlHandler::wxListCtrlXmlHandler() -: wxXmlResourceHandler() +wxListCtrlXmlHandler::wxListCtrlXmlHandler() +: wxXmlResourceHandler() { XRC_ADD_STYLE(wxLC_LIST); XRC_ADD_STYLE(wxLC_REPORT); @@ -50,7 +52,7 @@ wxListCtrlXmlHandler::wxListCtrlXmlHandler() } wxObject *wxListCtrlXmlHandler::DoCreateResource() -{ +{ XRC_MAKE_INSTANCE(list, wxListCtrl) list->Create(m_parentAsWindow, @@ -61,9 +63,9 @@ wxObject *wxListCtrlXmlHandler::DoCreateResource() GetName()); // FIXME: add columns definition - + SetupWindow(list); - + return list; } @@ -71,3 +73,5 @@ bool wxListCtrlXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxListCtrl")); } + +#endif // wxUSE_XRC