X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0526c8cc07ac02aeb1d95afecfa0d9201a8ddea0..f6ac9c62401b35980d693cc7fef5ccd5bcb6015a:/samples/xrc/xrcdemo.cpp diff --git a/samples/xrc/xrcdemo.cpp b/samples/xrc/xrcdemo.cpp index 9a770d9804..72973c0d1d 100644 --- a/samples/xrc/xrcdemo.cpp +++ b/samples/xrc/xrcdemo.cpp @@ -2,7 +2,6 @@ // Name: xrcdemo.cpp // Purpose: XML resources sample: Main application file // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) Robert O'Connor and Vaclav Slavik // Licence: wxWindows licence //----------------------------------------------------------------------------- @@ -38,6 +37,10 @@ #include "wx/xrc/xmlres.h" // XRC XML resources +#if wxUSE_RIBBON + #include "wx/xrc/xh_ribbon.h" +#endif // wxUSE_RIBBON + #include "wx/cshelp.h" // wxSimpleHelpProvider for helptext #include "myframe.h" @@ -78,6 +81,10 @@ bool MyApp::OnInit() // wxXRC docs for details. wxXmlResource::Get()->InitAllHandlers(); +#if wxUSE_RIBBON + wxXmlResource::Get()->AddHandler(new wxRibbonXmlHandler); +#endif + // Load all of the XRC files that will be used. You can put everything // into one giant XRC file if you wanted, but then they become more // diffcult to manage, and harder to reuse in later projects.