X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..422d306cb3acaebe95a0554754ab8a15f13a1784:/src/xrc/xmlrsall.cpp diff --git a/src/xrc/xmlrsall.cpp b/src/xrc/xmlrsall.cpp index 5c26749d93..bf2eb99734 100644 --- a/src/xrc/xmlrsall.cpp +++ b/src/xrc/xmlrsall.cpp @@ -20,6 +20,8 @@ #pragma hdrstop #endif +#if wxUSE_XRC + #include "wx/xrc/xmlres.h" #include "wx/xrc/xh_all.h" @@ -57,6 +59,9 @@ void wxXmlResource::InitAllHandlers() #if wxUSE_CHECKBOX AddHandler(new wxCheckBoxXmlHandler); #endif +#if wxUSE_TOGGLEBTN + AddHandler(new wxToggleButtonXmlHandler); +#endif #if wxUSE_HTML AddHandler(new wxHtmlWindowXmlHandler); #endif @@ -103,3 +108,5 @@ void wxXmlResource::InitAllHandlers() AddHandler(new wxStatusBarXmlHandler); #endif } + +#endif // wxUSE_XRC