#include "wx/wx.h"
#endif
-#if defined(__WXMSW__) && !defined(GNUWIN32)
+#if wxUSE_IOSTREAMH
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
#include <strstrea.h>
#else
#include <strstream.h>
#endif
+#else
+#include <strstream>
+using namespace std;
+#endif
#include "scorefil.h"
#include "scoredg.h"
void ScoreCanvas::OnDraw(wxDC& dc)
{
- dc.SetFont(m_font);
+ dc.SetFont(* m_font);
const char* str = m_text;
unsigned int tab = 0;
}
}
+BEGIN_EVENT_TABLE(ScoreDialog, wxDialog)
+ EVT_CLOSE(ScoreDialog::OnCloseWindow)
+END_EVENT_TABLE()
ScoreDialog::ScoreDialog(
wxWindow* parent,
Show(TRUE);
}
-bool ScoreDialog::OnClose()
+void ScoreDialog::OnCloseWindow(wxCloseEvent& event)
{
- // hide the dialog
- // NB don't return TRUE otherwise delete is called
- Show(FALSE);
- return FALSE;
+ EndModal(wxID_OK);
}