]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/griddemo.cpp
VC6 compilation fix for the grid sample.
[wxWidgets.git] / samples / grid / griddemo.cpp
index c331a34845751f7ba2faee46e6ea2aa01eb34a4c..a999bad0151e35c5d5b8b1d44f9e81e60a777f8e 100644 (file)
@@ -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();
 }