From 3253852a7e15e8df2048d70ab81cba85c0833d9d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Jun 2012 23:41:30 +0000 Subject: [PATCH] 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 --- samples/grid/griddemo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index c331a34845..a999bad015 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -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(); } -- 2.50.0