VC6 compilation fix for the grid sample.
Use Connect() instead of Bind() which is not available for VC6. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2237,7 +2237,10 @@ void GridFrame::OnGridRender( wxCommandEvent& event )
|
||||
|
||||
m_gridBitmap = bmp;
|
||||
|
||||
canvas->Bind( wxEVT_PAINT, &GridFrame::OnRenderPaint, this );
|
||||
canvas->Connect( wxEVT_PAINT,
|
||||
wxPaintEventHandler(GridFrame::OnRenderPaint),
|
||||
NULL,
|
||||
this );
|
||||
|
||||
frame->Show();
|
||||
}
|
||||
|
Reference in New Issue
Block a user