myCanvas = new MyCanvas(frame);
myCanvas->SetBackgroundColour(*wxWHITE);
-#ifndef __WXWINCE__
frame->Centre(wxBOTH);
-#endif
// Show the frame
frame->Show(true);
data.SetInitialFont(wxGetApp().m_canvasFont);
data.SetColour(wxGetApp().m_canvasTextColour);
- wxGenericFontDialog *dialog = new wxGenericFontDialog(this, &data);
+ wxGenericFontDialog *dialog = new wxGenericFontDialog(this, data);
if (dialog->ShowModal() == wxID_OK)
{
wxFontData retData = dialog->GetFontData();