- // Not added by default: include xpmhand.h in your app
- // and call these in your wxApp::OnInit.
- // AddHandler(new wxXPMFileHandler);
- // AddHandler(new wxXPMDataHandler);
+ // GRG: Add these handlers by default if XPM support is enabled
+
+#if wxUSE_XPM_IN_MSW
+ AddHandler(new wxXPMFileHandler);
+ AddHandler(new wxXPMDataHandler);
+#endif // wxUSE_XPM_IN_MSW