]> git.saurik.com Git - wxWidgets.git/commitdiff
VC6 compilation fix for the grid sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Jun 2012 23:41:30 +0000 (23:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Jun 2012 23:41:30 +0000 (23:41 +0000)
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

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();
 }