#include "wx/toolbar.h"
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#if !defined(__WXMSW__)
#include "mondrian.xpm"
#endif
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE | wxSUNKEN_BORDER);
+#if wxUSE_TOOLBAR
CreateToolBar(wxNO_BORDER | wxTB_FLAT | wxTB_HORIZONTAL);
InitToolBar(GetToolBar());
+#endif // wxUSE_TOOLBAR
// Accelerators
wxAcceleratorEntry entries[3];
subframe->Show(TRUE);
}
-void MyFrame::OnSize(wxSizeEvent& event)
+void MyFrame::OnSize(wxSizeEvent&
+ #ifdef __WXUNIVERSAL__
+ event
+ #else
+ WXUNUSED(event)
+ #endif
+ )
{
int w, h;
GetClientSize(&w, &h);
#endif
}
+#if wxUSE_TOOLBAR
void MyFrame::InitToolBar(wxToolBar* toolBar)
{
wxBitmap* bitmaps[8];
for (i = 0; i < 8; i++)
delete bitmaps[i];
}
+#endif // wxUSE_TOOLBAR
// ---------------------------------------------------------------------------
// MyCanvas