// ----------------------------------------------------------------------------
#ifdef __GNUG__
- #pragma implementation "minimal.cpp"
- #pragma interface "minimal.cpp"
+// #pragma implementation "minimal.cpp"
+// #pragma interface "minimal.cpp"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// resources
// ----------------------------------------------------------------------------
// the application icon
-#if defined(__WXGTK__) || defined(__WXMOTIF__)
+#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
#include "mondrian.xpm"
#endif
// not wxApp)
IMPLEMENT_APP(MyApp)
+
// ============================================================================
// implementation
// ============================================================================
// set the frame icon
SetIcon(wxICON(mondrian));
+#if wxUSE_MENUS
// create a menu bar
wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
+#endif // wxUSE_MENUS
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)