SetBackgroundColour( *wxWHITE );
}
-void MySimpleCanvas::OnPaint( wxPaintEvent &event )
+void MySimpleCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
{
wxPaintDC dc(this);
PrepareDC( dc );
-
+
dc.SetPen( *wxRED_PEN );
dc.SetBrush( *wxTRANSPARENT_BRUSH );
dc.DrawRectangle( 0,0,92,97 );
END_EVENT_TABLE()
MyAutoScrollWindow::MyAutoScrollWindow( wxWindow *parent )
- : wxScrolledWindow( parent, -1, wxDefaultPosition, wxDefaultSize,
+ : wxScrolledWindow( parent, -1, wxDefaultPosition, wxDefaultSize,
wxSUNKEN_BORDER|wxScrolledWindowStyle )
{
SetBackgroundColour( wxT("GREEN") );
CalcScrolledPosition(0, y, NULL, &yPhys);
dc.DrawText(wxString::Format(_T("Line %u (logical %d, physical %d)"),
- line, y, yPhys), 0, y);
+ unsigned(line), y, yPhys), 0, y);
y += m_hLine;
}
}
CalcScrolledPosition(0, y, NULL, &yPhys);
dc.DrawText(wxString::Format(_T("Line %u (logical %d, physical %d)"),
- line, y, yPhys), 0, y);
+ unsigned(line), y, yPhys), 0, y);
y += m_hLine;
}
}