corrected MSW-specific bug (in the sample, not the scrolling code)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,12 +107,10 @@ MyCanvas::~MyCanvas()
|
|||||||
|
|
||||||
void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
|
|
||||||
wxPaintDC dc( this );
|
wxPaintDC dc( this );
|
||||||
PrepareDC( dc );
|
PrepareDC( dc );
|
||||||
|
|
||||||
dc.DrawText( "Some text", 10, 10 );
|
dc.DrawText( "Some text", 110, 10 );
|
||||||
|
|
||||||
dc.DrawRectangle( 50, 30, 200, 200 );
|
dc.DrawRectangle( 50, 30, 200, 200 );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user